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
public abstract class FeaturesObject extends Object
Main interface for all features objects- Author:
- Maksim Bezrukov
-
-
Field Summary
Fields Modifier and Type Field Description protected FeaturesObjectAdapteradapterprotected List<String>errors
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected FeatureTreeNodecollectFeatures()protected static StringgenerateAttributeXPath(String... node)protected static StringgenerateVariableXPath(String... node)abstract FeaturesDatagetData()abstract FeatureObjectTypegetType()voidregisterNewError(String error)FeatureTreeNodereportFeatures(FeatureExtractionResult collection)Reports all features from the object into the collection
-
-
-
Field Detail
-
adapter
protected FeaturesObjectAdapter adapter
-
-
Method Detail
-
registerNewError
public void registerNewError(String error)
-
getType
public abstract FeatureObjectType 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
protected FeatureTreeNode collectFeatures() throws FeatureParsingException
- Throws:
FeatureParsingException
-
getData
public abstract FeaturesData getData()
- Returns:
- features data for object
-
-