Package org.apache.axis2.mex.om
Class Metadata
- java.lang.Object
-
- org.apache.axis2.mex.om.MexOM
-
- org.apache.axis2.mex.om.Metadata
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addMetadatSection(MetadataSection section)
void
addMetadatSections(List in_metadataSections)
Metadata
fromOM(OMElement inElement)
Populates an Metadata object based on theOMElement
passed.MetadataSection[]
getMetadataSection(String dialect, String identifier)
MetadataSection[]
getMetadataSection(String dialect, String identifier, OutputForm form)
Answers the Metadata Sections that met the criteria specified in the dialect, identifier, and form.MetadataSection[]
getMetadatSections()
void
setAttribute(OMAttribute in_attribute)
void
setMetadatSections(List in_metadataSections)
OMElement
toOM()
-
Methods inherited from class org.apache.axis2.mex.om.MexOM
getNamespaceValue, isNamespaceSupported
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.axis2.mex.om.IMexOM
getNamespaceValue, isNamespaceSupported
-
-
-
-
Constructor Detail
-
Metadata
public Metadata() throws MexException
Constructor- Throws:
MexException
-
Metadata
public Metadata(OMFactory defaultFactory, String namespaceValue) throws MexOMException
- Parameters:
defaultFactory
-namespaceValue
-- Throws:
MexOMException
-
-
Method Detail
-
getMetadatSections
public MetadataSection[] getMetadatSections()
- Returns:
- Array of MetadataSection of metadata units
-
getMetadataSection
public MetadataSection[] getMetadataSection(String dialect, String identifier)
- Parameters:
dialect
-identifier
-- Returns:
- Array of MetadataSection for the specified dialect metadata type and identifier
-
getMetadataSection
public MetadataSection[] getMetadataSection(String dialect, String identifier, OutputForm form)
Answers the Metadata Sections that met the criteria specified in the dialect, identifier, and form. Note: Null value parameter will be treated as wild card.- Parameters:
dialect
-identifier
-form
- specify the form of metadata: inline or by reference SeeOutputForm
for valid output forms.- Returns:
- Array of MetadataSection for the specified dialect metadata type and identifier of the form specified.
-
fromOM
public Metadata fromOM(OMElement inElement) throws MexOMException
Populates an Metadata object based on theOMElement
passed.- Parameters:
inElement
- mex:Metadata element or element contains mex:Metadata element- Returns:
- Metadata
- Throws:
MexOMException
-
toOM
public OMElement toOM() throws MexOMException
- Specified by:
toOM
in interfaceIMexOM
- Overrides:
toOM
in classMexOM
- Returns:
- Array of MetadataSection of metadata units
- Throws:
MexOMException
-
setMetadatSections
public void setMetadatSections(List in_metadataSections)
-
addMetadatSections
public void addMetadatSections(List in_metadataSections)
-
addMetadatSection
public void addMetadatSection(MetadataSection section)
-
setAttribute
public void setAttribute(OMAttribute in_attribute)
-
-