|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jpox.metadata.MetaData
org.jpox.metadata.ExtendableMetaData
org.jpox.metadata.PackageMetaData
Representation of the Meta-Data for a package.
<!ELEMENT package (extension*, (interface|class|sequence)*, extension*)> <!ATTLIST package name CDATA #REQUIRED>
Field Summary | |
protected java.lang.String |
catalog
Catalog name for all classes in this package |
protected java.util.List |
classes
List of classes. |
protected java.util.List |
interfaces
List of interfaces |
protected java.lang.String |
name
Package name |
protected java.lang.String |
schema
Schema name for all classes in this package |
protected java.util.List |
sequences
List of sequences |
Fields inherited from class org.jpox.metadata.ExtendableMetaData |
extensions, JPOX_VENDOR_NAME |
Fields inherited from class org.jpox.metadata.MetaData |
LOCALISER, METADATA_CREATED_STATE, METADATA_INITIALISED_STATE, METADATA_POPULATED_STATE, METADATA_USED_STATE, metaDataState, parent |
Constructor Summary | |
PackageMetaData(FileMetaData parent,
java.lang.String name,
java.lang.String catalog,
java.lang.String schema)
Constructor. |
Method Summary | |
void |
addClass(ClassMetaData cmd)
Method to add a class Meta-Data to the package. |
void |
addInterface(InterfaceMetaData imd)
Method to add a interface Meta-Data to the package. |
void |
addSequence(SequenceMetaData seqmd)
Method to add a sequence Meta-Data to the package. |
java.lang.String |
getCatalog()
Accessor for the catalog name for all classes in this package |
ClassMetaData |
getClass(int i)
Accessor for the Meta-Data of a class in this package. |
ClassMetaData |
getClass(java.lang.String name)
Accessor for the Meta-Data of a class with the specified name. |
FileMetaData |
getFileMetaData()
Accessor for the parent FileMetaData. |
InterfaceMetaData |
getInterface(int i)
Accessor for the Meta-Data of a interface in this package. |
InterfaceMetaData |
getInterface(java.lang.String name)
Accessor for the Meta-Data of an interface with the specified name. |
java.lang.String |
getName()
Accessor for the name of the package |
int |
getNoOfClasses()
Accessor for the number of classes. |
int |
getNoOfInterfaces()
Accessor for the number of interfaces. |
int |
getNoOfSequences()
Accessor for the number of sequences. |
java.lang.String |
getSchema()
Accessor for the schema name for all classes in this package |
SequenceMetaData |
getSequence(int i)
Accessor for the Meta-Data of a sequence in this package. |
SequenceMetaData |
getSequence(java.lang.String name)
Accessor for the Meta-Data of an sequence with the specified name. |
java.lang.String |
toString(java.lang.String prefix,
java.lang.String indent)
Returns a string representation of the object. |
Methods inherited from class org.jpox.metadata.ExtendableMetaData |
addExtension, addExtension, getExtension, getExtensions, getNoOfExtensions, getValueForExtension, getValuesForExtension, getValuesForExtensionStartingWith, hasExtension, removeExtension, toString |
Methods inherited from class org.jpox.metadata.MetaData |
getParent, initialise, isCreated, isInitialised, isPopulated, isUsed, populate, setInitialised, setPopulated, setUsed |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.util.List interfaces
protected java.util.List classes
protected java.util.List sequences
protected final java.lang.String name
protected java.lang.String catalog
protected java.lang.String schema
Constructor Detail |
public PackageMetaData(FileMetaData parent, java.lang.String name, java.lang.String catalog, java.lang.String schema)
parent
- The FileMetaData ownername
- Name of packagecatalog
- Catalog name for all classes in the packageschema
- Schema name for all classes in the packageMethod Detail |
public FileMetaData getFileMetaData()
public java.lang.String getName()
public java.lang.String getCatalog()
public java.lang.String getSchema()
public int getNoOfInterfaces()
public InterfaceMetaData getInterface(int i)
i
- interface index
public InterfaceMetaData getInterface(java.lang.String name)
name
- the name of the interface
public int getNoOfClasses()
public ClassMetaData getClass(int i)
i
- class index
public ClassMetaData getClass(java.lang.String name)
name
- the name of the class
public int getNoOfSequences()
public SequenceMetaData getSequence(int i)
i
- sequence index
public SequenceMetaData getSequence(java.lang.String name)
name
- the name of the sequence
public void addClass(ClassMetaData cmd)
cmd
- Meta-Data for the classpublic void addInterface(InterfaceMetaData imd)
imd
- Meta-Data for the interfacepublic void addSequence(SequenceMetaData seqmd)
seqmd
- Meta-Data for the sequencepublic java.lang.String toString(java.lang.String prefix, java.lang.String indent)
toString
in class ExtendableMetaData
prefix
- prefix stringindent
- indent string
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |