public abstract class AbstractNamedAFPObject extends AbstractTripletStructuredObject
AbstractAFPObject.Category, AbstractAFPObject.Type| Modifier and Type | Field and Description |
|---|---|
protected String |
name
The actual name of the object
|
tripletsLOG, SF_CLASS, SF_HEADER_LENGTH| Modifier | Constructor and Description |
|---|---|
protected |
AbstractNamedAFPObject()
Default constructor
|
protected |
AbstractNamedAFPObject(String name)
Constructor for the ActiveEnvironmentGroup, this takes a
name parameter which should be 8 characters long.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
copySF(byte[] data,
byte type,
byte category)
Copies the template structured field data array to the given byte array
|
String |
getName()
Returns the name of this object
|
byte[] |
getNameBytes()
Returns the name as a byte array in EBCIDIC encoding
|
protected int |
getNameLength()
Returns the name length
|
void |
setName(String name)
Sets the name of this object
|
String |
toString() |
addTriplet, addTriplets, getFullyQualifiedName, getTripletDataLength, getTriplets, hasTriplet, hasTriplets, setComment, setFullyQualifiedName, setFullyQualifiedName, setObjectClassification, writeTripletswriteContent, writeEnd, writeStart, writeToStreamcopySF, truncate, writeChunksToStream, writeObjectsprotected String name
protected AbstractNamedAFPObject()
protected AbstractNamedAFPObject(String name)
name - the object nameprotected int getNameLength()
public byte[] getNameBytes()
protected void copySF(byte[] data,
byte type,
byte category)
AbstractAFPObjectcopySF in class AbstractAFPObjectdata - the structured field data byte arraytype - the type codecategory - the category codepublic String getName()
public void setName(String name)
name - the object nameCopyright © 2025 Apache Software Foundation. All rights reserved.