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
public class MetadataSection extends MexOM implements 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
Constructors Constructor Description MetadataSection()ConstructorMetadataSection(OMFactory defaultFactory, String namespaceValue)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MetadataSectionfromOM(OMElement element)Populates an MetadataSection object based on theOMElementpassed.StringgetanyAttribute()StringgetDialect()StringgetIdentifier()OMNodegetInlineData()Return metadata unit in inline form such as WSDL definitions, XML schema document, etc.LocationgetLocation()Return metadata unit in URL form i.e. mex:LocationMetadataReferencegetMetadataReference()Return metadata unit in endpoint reference form i.e. mex:MetadataReference.voidsetDialect(String in_dialect)voidsetIdentifier(String in_identifier)voidsetinlineData(Object in_inlineData)voidsetLocation(Location in_location)voidsetMetadataReference(MetadataReference in_ref)OMElementtoOM()Convert MetadatSection content to the OMElement representation.-
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
-
MetadataSection
public MetadataSection() throws MexExceptionConstructor- Throws:
MexException
-
MetadataSection
public MetadataSection(OMFactory defaultFactory, String namespaceValue) throws MexOMException
Constructor- Parameters:
defaultFactory-namespaceValue-- Throws:
MexOMException
-
-
Method Detail
-
fromOM
public MetadataSection fromOM(OMElement element) throws MexOMException
Populates an MetadataSection object based on theOMElementpassed.- Parameters:
inElement- mex:MetadataSection element- Returns:
- MetadataSection
- Throws:
MexOMException
-
toOM
public OMElement toOM() throws MexOMException
Convert MetadatSection content to the OMElement representation.- Specified by:
toOMin interfaceIMexOM- Overrides:
toOMin classMexOM- Returns:
- OMElement representation of MetadataSection.
- Throws:
MexOMException
-
getDialect
public String getDialect()
-
getIdentifier
public String getIdentifier()
-
getanyAttribute
public String getanyAttribute()
-
getLocation
public Location getLocation()
Return metadata unit in URL form i.e. mex:Location- Returns:
-
getInlineData
public OMNode getInlineData()
Return metadata unit in inline form such as WSDL definitions, XML schema document, etc.- Returns:
-
getMetadataReference
public MetadataReference getMetadataReference()
Return metadata unit in endpoint reference form i.e. mex:MetadataReference.- Returns:
-
setIdentifier
public void setIdentifier(String in_identifier)
-
setDialect
public void setDialect(String in_dialect)
-
setLocation
public void setLocation(Location in_location)
-
setinlineData
public void setinlineData(Object in_inlineData)
-
setMetadataReference
public void setMetadataReference(MetadataReference in_ref)
-
-