Package org.apache.axis2.mex.om
Class MetadataSection
java.lang.Object
org.apache.axis2.mex.om.MexOM
org.apache.axis2.mex.om.MetadataSection
- All Implemented Interfaces:
IMexOM
Class implemented for MetadataSection element defined in
the WS-MEX spec. A unit of metdata i.e. a MetadataSection may be included in-line data,
or may be by reference as an endpoint reference (MetadataReference) or a URL (Location).
An instance of MetadataSection can have one form of data: inline, location, or reference.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructorMetadataSection(org.apache.axiom.om.OMFactory defaultFactory, String namespaceValue) Constructor -
Method Summary
Modifier and TypeMethodDescriptionfromOM(org.apache.axiom.om.OMElement element) Populates an MetadataSection object based on theOMElementpassed.org.apache.axiom.om.OMNodeReturn metadata unit in inline form such as WSDL definitions, XML schema document, etc.Return metadata unit in URL form i.e.Return metadata unit in endpoint reference form i.e.voidsetDialect(String in_dialect) voidsetIdentifier(String in_identifier) voidsetinlineData(Object in_inlineData) voidsetLocation(Location in_location) voidorg.apache.axiom.om.OMElementtoOM()Convert MetadatSection content to the OMElement representation.Methods inherited from class org.apache.axis2.mex.om.MexOM
getNamespaceValue, isNamespaceSupportedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.axis2.mex.om.IMexOM
getNamespaceValue, isNamespaceSupported
-
Constructor Details
-
MetadataSection
Constructor- Throws:
MexException
-
MetadataSection
public MetadataSection(org.apache.axiom.om.OMFactory defaultFactory, String namespaceValue) throws MexOMException Constructor- Parameters:
defaultFactory-namespaceValue-- Throws:
MexOMException
-
-
Method Details
-
fromOM
Populates an MetadataSection object based on theOMElementpassed.- Parameters:
inElement- mex:MetadataSection element- Returns:
- MetadataSection
- Throws:
MexOMException
-
toOM
Convert MetadatSection content to the OMElement representation.- Specified by:
toOMin interfaceIMexOM- Overrides:
toOMin classMexOM- Returns:
- OMElement representation of MetadataSection.
- Throws:
MexOMException
-
getDialect
-
getIdentifier
-
getanyAttribute
-
getLocation
Return metadata unit in URL form i.e. mex:Location- Returns:
-
getInlineData
public org.apache.axiom.om.OMNode getInlineData()Return metadata unit in inline form such as WSDL definitions, XML schema document, etc.- Returns:
-
getMetadataReference
Return metadata unit in endpoint reference form i.e. mex:MetadataReference.- Returns:
-
setIdentifier
-
setDialect
-
setLocation
-
setinlineData
-
setMetadataReference
-