Package org.verapdf.model
Class GenericModelObject
- java.lang.Object
-
- org.verapdf.model.GenericModelObject
-
- All Implemented Interfaces:
Object
- Direct Known Subclasses:
AXLXMPObject,GFSAAnnotation,GFSAChunk,GFSAPage,GFSAPDFDocument,GFSAStructElem,GFSAStructTreeRoot
public abstract class GenericModelObject extends Object implements Object
-
-
Field Summary
Fields Modifier and Type Field Description protected BooleancontextDependent
-
Constructor Summary
Constructors Modifier Constructor Description protectedGenericModelObject(String objectType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetContext()StringgetExtraContext()StringgetID()List<? extends Object>getLinkedObjects(String link)List<String>getLinks()StringgetObjectType()List<String>getProperties()List<String>getSuperTypes()BooleanisContextDependent()
-
-
-
Field Detail
-
contextDependent
protected Boolean contextDependent
-
-
Constructor Detail
-
GenericModelObject
protected GenericModelObject(String objectType)
-
-
Method Detail
-
getObjectType
public final String getObjectType()
- Specified by:
getObjectTypein interfaceObject- Returns:
- type of the current object
-
getID
public String getID()
-
getExtraContext
public String getExtraContext()
- Specified by:
getExtraContextin interfaceObject- Returns:
- extra context of the current object
-
getContext
public String getContext()
- Specified by:
getContextin interfaceObject- Returns:
- context of the current object
-
getLinkedObjects
public List<? extends Object> getLinkedObjects(String link)
- Specified by:
getLinkedObjectsin interfaceObject- Parameters:
link- - the name of a link- Returns:
- List of objects with the given link
-
getProperties
public List<String> getProperties()
- Specified by:
getPropertiesin interfaceObject- Returns:
- List of names of properties for
thisobject
-
isContextDependent
public Boolean isContextDependent()
- Specified by:
isContextDependentin interfaceObject- Returns:
- null, if we have not know yet is this object context dependet of not. true, if this object is context dependent. false, if this object is not context dependent.
-
getSuperTypes
public List<String> getSuperTypes()
- Specified by:
getSuperTypesin interfaceObject- Returns:
- List of supernames for
thisobject
-
-