public abstract class AbstractTripletStructuredObject extends AbstractStructuredObject
AbstractAFPObject.Category, AbstractAFPObject.Type
Modifier and Type | Field and Description |
---|---|
protected List<AbstractTriplet> |
triplets
list of object triplets
|
LOG, SF_CLASS, SF_HEADER_LENGTH
Constructor and Description |
---|
AbstractTripletStructuredObject() |
Modifier and Type | Method and Description |
---|---|
void |
addTriplet(AbstractTriplet triplet)
Adds a triplet to this structured object
|
void |
addTriplets(Collection<AbstractTriplet> tripletCollection)
Adds a list of triplets to the triplets contained within this structured field
|
String |
getFullyQualifiedName() |
protected int |
getTripletDataLength()
Returns the triplet data length
|
protected List<AbstractTriplet> |
getTriplets() |
boolean |
hasTriplet(byte tripletId)
Returns true of this structured field has the given triplet
|
boolean |
hasTriplets()
Returns true when this structured field contains triplets
|
void |
setComment(String commentString)
Sets a comment on this resource
|
void |
setFullyQualifiedName(byte fqnType,
byte fqnFormat,
String fqName)
Sets the fully qualified name of this structured field
|
void |
setFullyQualifiedName(byte fqnType,
byte fqnFormat,
String fqName,
boolean utf16be) |
void |
setObjectClassification(byte objectClass,
Registry.ObjectType objectType,
boolean dataInContainer,
boolean containerHasOEG,
boolean dataInOCD)
Sets the objects classification
|
protected void |
writeTriplets(OutputStream os)
Writes any triplet data
|
writeContent, writeEnd, writeStart, writeToStream
copySF, copySF, truncate, writeChunksToStream, writeObjects
protected List<AbstractTriplet> triplets
protected int getTripletDataLength()
public boolean hasTriplets()
protected void writeTriplets(OutputStream os) throws IOException
os
- The stream to write toIOException
- The stream to write topublic boolean hasTriplet(byte tripletId)
tripletId
- the triplet identifierpublic void addTriplet(AbstractTriplet triplet)
triplet
- the triplet to addpublic void addTriplets(Collection<AbstractTriplet> tripletCollection)
tripletCollection
- a collection of tripletsprotected List<AbstractTriplet> getTriplets()
public void setFullyQualifiedName(byte fqnType, byte fqnFormat, String fqName)
fqnType
- the fully qualified name type of this resourcefqnFormat
- the fully qualified name format of this resourcefqName
- the fully qualified name of this resourcepublic void setFullyQualifiedName(byte fqnType, byte fqnFormat, String fqName, boolean utf16be)
public String getFullyQualifiedName()
public void setObjectClassification(byte objectClass, Registry.ObjectType objectType, boolean dataInContainer, boolean containerHasOEG, boolean dataInOCD)
objectClass
- the classification of the objectobjectType
- the MOD:CA registry object type entry for the given
object/component type of the objectdataInContainer
- whether the data resides in the containercontainerHasOEG
- whether the container has an object environment groupdataInOCD
- whether the data resides in a object container data structured fieldpublic void setComment(String commentString)
commentString
- a comment stringCopyright © 2025 Apache Software Foundation. All rights reserved.