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 MetadataSection
fromOM(OMElement element)
Populates an MetadataSection object based on theOMElement
passed.String
getanyAttribute()
String
getDialect()
String
getIdentifier()
OMNode
getInlineData()
Return metadata unit in inline form such as WSDL definitions, XML schema document, etc.Location
getLocation()
Return metadata unit in URL form i.e. mex:LocationMetadataReference
getMetadataReference()
Return metadata unit in endpoint reference form i.e. mex:MetadataReference.void
setDialect(String in_dialect)
void
setIdentifier(String in_identifier)
void
setinlineData(Object in_inlineData)
void
setLocation(Location in_location)
void
setMetadataReference(MetadataReference in_ref)
OMElement
toOM()
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 MexException
Constructor- 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 theOMElement
passed.- Parameters:
inElement
- mex:MetadataSection element- Returns:
- MetadataSection
- Throws:
MexOMException
-
toOM
public OMElement toOM() throws MexOMException
Convert MetadatSection content to the OMElement representation.- Specified by:
toOM
in interfaceIMexOM
- Overrides:
toOM
in 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)
-
-