|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--amwebarsentitlementservice.container.ContainerDescriptorTable
Field Summary | |
static java.lang.String |
DESCRIPTOR_TABLE_XML_NAME
|
Constructor Summary | |
protected |
ContainerDescriptorTable()
|
Method Summary | |
void |
clear()
Removes all elements of the ContainerDescriptorTable. |
protected java.lang.Object |
clone()
It isn't permited to clone the object: The clone method throws the CloneNotSupportedException. |
boolean |
containsContainerDescriptor(AMWebARSContainerDescriptor container_descriptor)
Tests whether a container_descriptor is contained in the ContainerDescriptorTable. |
boolean |
containsContainerDescriptorID(java.lang.String container_type_id)
Tests whether a ContainerDescriptor with given container_type_id is contained in the ContainerDescriptorTable. |
java.util.Enumeration |
elements()
Generates an Enumeration containing all AMWebARSContainerDescriptors of that table. |
boolean |
equals(java.lang.Object other_object)
Tests whether this ContainerDescriptorTable is equal to another. |
void |
fromXML(org.jdom.Document xml_descriptor_table)
Updates the ContainerDescriptorTable from an XML datastructure. |
AMWebARSContainerDescriptor |
getContainerDescriptor(java.lang.String container_type_id)
Returns a container_descriptor of a given container_descriptor_id. |
AMWebARSContainerDescriptor |
getContainerDescriptor(java.lang.String container_name,
java.lang.String namespace)
Returns a container_descriptor of a given container_descriptor_id. |
java.lang.String[] |
getContainerTypeIDArray()
Generates an array that contains all container type ids of the ContainerDescriptorTable. |
static ContainerDescriptorTable |
getInstance()
Returns the only instance of the ContainerDescriptorTable. |
boolean |
isEmpty()
Tests whether this Table contains no ContainerDescriptors. |
void |
load(java.io.InputStream in)
Loads the ContainerDescriptorTable from an input stream. |
AMWebARSContainerDescriptor |
registerContainerDescriptor(java.lang.String container_type_id)
Registers a new ContainerDescriptor in the ContainerDescriptorTable. |
AMWebARSContainerDescriptor |
registerContainerDescriptor(java.lang.String container_name,
java.lang.String namespace)
Registers a new ContainerDescriptor in the ContainerDescriptorTable. |
AMWebARSContainerDescriptor |
removeContainerDescriptor(AMWebARSContainerDescriptor container_descriptor)
Removes a ContainerDescriptor from the ContainerDescriptorTable. |
AMWebARSContainerDescriptor |
removeContainerDescriptor(java.lang.String container_type_id)
Removes a ContainerDescriptor with given container_type_id from the ContainerDescriptorTable. |
int |
size()
Returns the size of the table that means the number of container_descriptor stored in it. |
void |
store(java.io.OutputStream out)
Stores the ContainerDescriptorTable into an output stream. |
java.lang.String |
toString()
|
org.jdom.Document |
toXML()
Translates the ContainerDescriptorTable to XML. |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String DESCRIPTOR_TABLE_XML_NAME
Constructor Detail |
protected ContainerDescriptorTable()
Method Detail |
public static ContainerDescriptorTable getInstance()
protected java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
- public AMWebARSContainerDescriptor getContainerDescriptor(java.lang.String container_type_id) throws java.util.NoSuchElementException
container_descriptor_id
- String ID of the container_descriptorjava.util.NoSuchElementException
- If the container_descriptor isn't found.NullPointerException
- If parameter is null.public AMWebARSContainerDescriptor getContainerDescriptor(java.lang.String container_name, java.lang.String namespace) throws java.util.NoSuchElementException
container_descriptor_id
- String ID of the container_descriptorjava.util.NoSuchElementException
- If the container_descriptor isn't found.NullPointerException
- If parameter is null.public AMWebARSContainerDescriptor registerContainerDescriptor(java.lang.String container_type_id)
container_type_id
- String ID of the ContainerDescriptor that is registered.NullPointerException
- if parameter is nullpublic AMWebARSContainerDescriptor registerContainerDescriptor(java.lang.String container_name, java.lang.String namespace)
container_name
- String name of the ContainerDescriptor that is registered.namespace
- String namespace of the ContainerDescriptorNullPointerException
- if parameter is nullpublic AMWebARSContainerDescriptor removeContainerDescriptor(java.lang.String container_type_id) throws java.util.NoSuchElementException
String
- container_type_id of the ContainerDescriptor to be removedjava.util.NoSuchElementException
- if the ContainerDescriptor isn't foundNullPointerException
- if parameter is nullpublic AMWebARSContainerDescriptor removeContainerDescriptor(AMWebARSContainerDescriptor container_descriptor) throws java.util.NoSuchElementException
container_descriptor
- ContainerDescriptor to be removedjava.util.NoSuchElementException
- if the ContainerDescriptor isn't foundNullPointerException
- if parameter is nullpublic boolean containsContainerDescriptor(AMWebARSContainerDescriptor container_descriptor)
container_descriptor
- ContainerDescriptor to be looked for.NullPointerException
- if parameter is nullpublic boolean containsContainerDescriptorID(java.lang.String container_type_id)
container_type_id
- String ID of the ContainerDescriptor to be looked for.NullPointerException
- if parameter is nullpublic java.util.Enumeration elements()
public java.lang.String[] getContainerTypeIDArray()
public int size()
public boolean isEmpty()
public void clear()
public boolean equals(java.lang.Object other_object)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public org.jdom.Document toXML()
public void fromXML(org.jdom.Document xml_descriptor_table) throws sun.io.MalformedInputException
xml_descriptor_table
- Document that describes the table.public void load(java.io.InputStream in) throws java.io.IOException, org.jdom.JDOMException
in
- InputStreampublic void store(java.io.OutputStream out) throws java.io.IOException
out
- OutputStream
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |