public abstract class AbstractNamedAFPObject extends AbstractTripletStructuredObject
AbstractAFPObject.Category, AbstractAFPObject.Type
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
name
The actual name of the object
|
triplets
log, SF_CLASS, SF_HEADER
Modifier | Constructor and Description |
---|---|
protected |
AbstractNamedAFPObject()
Default constructor
|
protected |
AbstractNamedAFPObject(java.lang.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
|
java.lang.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(java.lang.String name)
Sets the name of this object
|
java.lang.String |
toString() |
addTriplet, addTriplets, getFullyQualifiedName, getTripletDataLength, getTriplets, hasTriplet, hasTriplets, setComment, setFullyQualifiedName, setObjectClassification, writeTriplets
writeContent, writeEnd, writeStart, writeToStream
copyChunks, copySF, truncate, writeChunksToStream, writeObjects
protected AbstractNamedAFPObject()
protected AbstractNamedAFPObject(java.lang.String name)
name
- the object nameprotected int getNameLength()
public byte[] getNameBytes()
protected void copySF(byte[] data, byte type, byte category)
copySF
in class AbstractAFPObject
data
- the structured field data byte arraytype
- the type codecategory
- the category codepublic java.lang.String getName()
public void setName(java.lang.String name)
name
- the object namepublic java.lang.String toString()
toString
in class java.lang.Object
Copyright 1999-2010 The Apache Software Foundation. All Rights Reserved.