|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.edustructures.sifworks.tools.metadata.ADKMetadata
public class ADKMetadata
| Field Summary | |
|---|---|
static byte |
MD_REPEATABLE
Metadata flag: Identifies a repeatable element |
| Method Summary | |
|---|---|
ElementDef |
defineAttribute(ElementDef parent,
java.lang.String name,
int sequence,
SIFVersion earliestVersion)
Define an attribute of a SIF Data Object. |
ElementDef |
defineChildElement(ElementDef parent,
ElementDef element,
int sequence,
byte flags,
SIFVersion earliestVersion)
Define a complex child element of a SIF Data Object. |
ElementDef |
defineDataObject(java.lang.String name,
SIFVersion earliestVersion)
Define a top-level SIF Data Object. |
ElementDef |
defineElement(java.lang.String name,
SIFVersion earliestVersion)
Define a complex element. |
ElementDef |
defineField(ElementDef parent,
java.lang.String name,
int sequence,
byte flags,
SIFVersion earliestVersion)
Define a field of a SIF Data Object. |
static ADKMetadata |
getInstance()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final byte MD_REPEATABLE
| Method Detail |
|---|
public static ADKMetadata getInstance()
public ElementDef defineDataObject(java.lang.String name,
SIFVersion earliestVersion)
name - The tag name of the data objectearliestVersion - The earliest version of the specification this object should
be recognized in
public ElementDef defineElement(java.lang.String name,
SIFVersion earliestVersion)
A complex element has attributes and/or elements of its own and is represented
by its own class. Complex elements must be defined with this method, and then
added as a child element to a SIF Data Object by calling defineChildElement(com.edustructures.sifworks.ElementDef, com.edustructures.sifworks.ElementDef, int, byte, com.edustructures.sifworks.SIFVersion).
name - The tag name of the elementearliestVersion - The earliest version of the specification this element should
be recognized in
public ElementDef defineAttribute(ElementDef parent,
java.lang.String name,
int sequence,
SIFVersion earliestVersion)
parent - The ElementDef constant identifying the parent data objectname - The tag name of the attributesequence - The zero-based sequence number of the attributeearliestVersion - The earliest version of the specification this attribute should
be recognized in
public ElementDef defineField(ElementDef parent,
java.lang.String name,
int sequence,
byte flags,
SIFVersion earliestVersion)
A field is a simple child element that has no attributes or elements of its own and
is not represented by its own class. For example, the <LocalId>
common element in SIF 1.5. Internally, the ADK stores fields more efficiently than
complex elements.
parent - The ElementDef constant identifying the parent data object or elementname - The tag name of the elementsequence - The zero-based sequence number of the elementflags - Optional flags for this field (e.g. MD_REPEATABLE), or zero
if no flags are applicableearliestVersion - The earliest version of the specification this element should
be recognized in
public ElementDef defineChildElement(ElementDef parent,
ElementDef element,
int sequence,
byte flags,
SIFVersion earliestVersion)
The child element must be an existing element, such as a Common Element
(e.g. SIFDTD.NAME)
parent - The ElementDef constant identifying the parent data object or elementelement - The ElementDef constant of an existing element, such as a
Common Element (e.g. SIFDTD.NAME)sequence - The zero-based sequence number of the elementflags - Optional flags for this field (e.g. MD_REPEATABLE), or zero
if no flags are applicableearliestVersion - The earliest version of the specification this element should
be recognized in
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||