Package org.verapdf.features.objects
Class FeaturesObject
java.lang.Object
org.verapdf.features.objects.FeaturesObject
- Direct Known Subclasses:
ActionFeaturesObject
,AnnotationFeaturesObject
,ColorSpaceFeaturesObject
,DocSecurityFeaturesObject
,EmbeddedFileFeaturesObject
,ExtGStateFeaturesObject
,FontFeaturesObject
,FormXObjectFeaturesObject
,ICCProfileFeaturesObject
,ImageXObjectFeaturesObject
,InfoDictFeaturesObject
,InteractiveFormFieldFeaturesObject
,LowLvlInfoFeaturesObject
,MetadataFeaturesObject
,OutlinesFeaturesObject
,OutputIntentFeaturesObject
,PageFeaturesObject
,PostScriptFeaturesObject
,PropertiesDictFeaturesObject
,ShadingFeaturesObject
,ShadingPatternFeaturesObject
,SignatureFeaturesObject
,TilingPatternFeaturesObject
Main interface for all features objects
- Author:
- Maksim Bezrukov
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected FeatureTreeNode
protected static String
generateAttributeXPath
(String... node) protected static String
generateVariableXPath
(String... node) abstract FeaturesData
getData()
abstract FeatureObjectType
getType()
void
registerNewError
(String error) reportFeatures
(FeatureExtractionResult collection) Reports all features from the object into the collection
-
Field Details
-
adapter
-
errors
-
-
Method Details
-
registerNewError
-
getType
- Returns:
- enum type of the current feature object
-
reportFeatures
public FeatureTreeNode reportFeatures(FeatureExtractionResult collection) throws FeatureParsingException Reports all features from the object into the collection- Parameters:
collection
- collection for feature report- Returns:
- FeatureTreeNode class which represents a root node of the constructed collection tree
- Throws:
FeatureParsingException
- occurs when wrong features tree node constructs
-
collectFeatures
- Throws:
FeatureParsingException
-
getData
- Returns:
- features data for object
-
generateVariableXPath
-
generateAttributeXPath
-