public class TObject extends TElement
| Modifier and Type | Field and Description |
|---|---|
protected com.tameif.tame.struct.CaseInsensitiveStringSet |
determiners
Element's determiners (name token affixes).
|
protected com.tameif.tame.struct.CaseInsensitiveStringSet |
names
Element's names.
|
protected com.tameif.tame.struct.CaseInsensitiveStringSet |
tags
Element's names.
|
| Constructor and Description |
|---|
TObject(java.lang.String identity)
Creates an empty object.
|
TObject(java.lang.String identity,
TObject parent)
Creates an empty object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addDeterminer(java.lang.String determiner)
Adds a name determiner to this object.
|
void |
addName(java.lang.String name)
Adds an initial name to this object.
|
void |
addTag(java.lang.String tag)
Adds an initial tag to this object.
|
static TObject |
create(java.io.InputStream in)
Creates this object from an input stream, expecting its byte representation.
|
java.lang.Iterable<java.lang.String> |
getDeterminers()
Gets the name determiners on this object as an iterable structure.
|
java.lang.Iterable<java.lang.String> |
getNames()
Gets the initial names on this object as an iterable structure.
|
java.lang.Iterable<java.lang.String> |
getTags()
Gets the initial tags on this object as an iterable structure.
|
boolean |
isValidEntryType(BlockEntryType type)
Checks if this element handles a particular entry type.
|
void |
readBytes(java.io.InputStream in)
Imports this object from bytes.
|
void |
writeBytes(java.io.OutputStream out)
Exports this object to bytes.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitaddBlock, addFunction, equals, equals, fromBytes, getBlock, getBlockEntries, getFunction, getFunctionEntries, getIdentity, getParent, hashCode, isArchetype, resolveBlock, resolveFunction, setArchetype, setIdentity, setIdentityForced, setParent, toBytes, toStringprotected com.tameif.tame.struct.CaseInsensitiveStringSet determiners
protected com.tameif.tame.struct.CaseInsensitiveStringSet names
protected com.tameif.tame.struct.CaseInsensitiveStringSet tags
public TObject(java.lang.String identity)
identity - the unique identity.public TObject(java.lang.String identity,
TObject parent)
identity - the unique identity.parent - the object's parent object.public final boolean isValidEntryType(BlockEntryType type)
TElementisValidEntryType in class TElementtype - the entry type to check.public void addName(java.lang.String name)
name - the name to add.public java.lang.Iterable<java.lang.String> getNames()
public void addDeterminer(java.lang.String determiner)
determiner - the name to add.public java.lang.Iterable<java.lang.String> getDeterminers()
public void addTag(java.lang.String tag)
tag - the tag to add.public java.lang.Iterable<java.lang.String> getTags()
public static TObject create(java.io.InputStream in) throws java.io.IOException
in - the input stream to read from.java.io.IOException - if a read error occurs.public void writeBytes(java.io.OutputStream out)
throws java.io.IOException
SaveablewriteBytes in interface SaveablewriteBytes in class TElementout - the output stream to write to.java.io.IOException - if a write problem occurs.public void readBytes(java.io.InputStream in)
throws java.io.IOException
Saveable