|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.muse.ws.resource.metadata.impl.SimpleMetadataDescriptor
SimpleMetadataDescriptor is Muse's default implementation of the RMD parsing and evaluation stage. It stores a simple lookup table of property names and metadata.
Constructor Summary | |
---|---|
SimpleMetadataDescriptor(org.w3c.dom.Element xml)
Creates a new RMD metadata descriptor from the given XML definition. |
Method Summary | |
---|---|
boolean |
canDelete(QName propertyQName)
|
boolean |
canInsert(QName propertyQName)
|
boolean |
canUpdate(QName propertyQName)
|
java.lang.String |
getExtendedMetadata(QName propertyQName,
QName elementName)
This method allows you to extend a wsrmd:Property definition and provide application-specific metadata for a property. |
java.util.Collection |
getInitialValues(QName propertyQName)
|
java.util.Collection |
getInitialValues(QName propertyQName,
java.lang.Class javaType)
|
QName |
getInterface()
|
java.lang.String |
getLowerBound(QName propertyQName)
|
java.lang.String |
getName()
|
java.util.Collection |
getPropertyNames()
|
java.util.Collection |
getStaticValues(QName propertyQName)
|
java.util.Collection |
getStaticValues(QName propertyQName,
java.lang.Class javaType)
|
java.lang.String |
getUpperBound(QName propertyQName)
|
java.util.Collection |
getValidValues(QName propertyQName)
|
java.util.Collection |
getValidValues(QName propertyQName,
java.lang.Class javaType)
|
java.lang.String |
getWsdlLocation()
|
boolean |
hasProperty(QName propertyQName)
|
boolean |
isInitialValue(QName propertyQName,
java.lang.Object value)
|
boolean |
isReadOnlyExternal(QName propertyQName)
|
boolean |
isStaticValue(QName propertyQName,
java.lang.Object value)
|
boolean |
isValidValue(QName propertyQName,
java.lang.Object value)
|
org.w3c.dom.Element |
toXML()
Converts this object into an XML representation, as defined by its related schema or specification. |
org.w3c.dom.Element |
toXML(org.w3c.dom.Document doc)
Converts this object into an XML representation, as defined by its related schema or specification. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SimpleMetadataDescriptor(org.w3c.dom.Element xml)
xml
- The XML representation of the descriptor.Method Detail |
public boolean canDelete(QName propertyQName)
canDelete
in interface MetadataDescriptor
propertyQName
-
public boolean canInsert(QName propertyQName)
canInsert
in interface MetadataDescriptor
propertyQName
-
public boolean canUpdate(QName propertyQName)
canUpdate
in interface MetadataDescriptor
propertyQName
-
public java.lang.String getExtendedMetadata(QName propertyQName, QName elementName)
MetadataDescriptor
getExtendedMetadata
in interface MetadataDescriptor
propertyQName
- elementName
- The name of the extended metadata item.
public java.util.Collection getInitialValues(QName propertyQName)
getInitialValues
in interface MetadataDescriptor
propertyQName
-
MetadataDescriptor.getInitialValues(QName, Class)
public java.util.Collection getInitialValues(QName propertyQName, java.lang.Class javaType) throws SoapFault
getInitialValues
in interface MetadataDescriptor
propertyQName
- javaType
- The type whose serializer should be used to convert the
property values (DOM Elements) into POJOs.
SoapFault
- MetadataDescriptor.getValidValues(QName)
public QName getInterface()
getInterface
in interface MetadataDescriptor
public java.lang.String getLowerBound(QName propertyQName)
getLowerBound
in interface MetadataDescriptor
propertyQName
-
public java.lang.String getName()
getName
in interface MetadataDescriptor
public java.util.Collection getPropertyNames()
getPropertyNames
in interface MetadataDescriptor
public java.util.Collection getStaticValues(QName propertyQName)
getStaticValues
in interface MetadataDescriptor
propertyQName
-
MetadataDescriptor.getStaticValues(QName, Class)
public java.util.Collection getStaticValues(QName propertyQName, java.lang.Class javaType) throws SoapFault
getStaticValues
in interface MetadataDescriptor
propertyQName
- javaType
- The type whose serializer should be used to convert the
property values (DOM Elements) into POJOs.
SoapFault
- MetadataDescriptor.getStaticValues(QName)
public java.lang.String getUpperBound(QName propertyQName)
getUpperBound
in interface MetadataDescriptor
propertyQName
-
public java.util.Collection getValidValues(QName propertyQName)
getValidValues
in interface MetadataDescriptor
propertyQName
-
MetadataDescriptor.getValidValues(QName, Class)
public java.util.Collection getValidValues(QName propertyQName, java.lang.Class javaType) throws SoapFault
getValidValues
in interface MetadataDescriptor
propertyQName
- javaType
- The type whose serializer should be used to convert the
property values (DOM Elements) into POJOs.
SoapFault
- MetadataDescriptor.getValidValues(QName)
public java.lang.String getWsdlLocation()
getWsdlLocation
in interface MetadataDescriptor
public boolean hasProperty(QName propertyQName)
hasProperty
in interface MetadataDescriptor
propertyQName
-
public boolean isInitialValue(QName propertyQName, java.lang.Object value)
isInitialValue
in interface MetadataDescriptor
propertyQName
- value
-
public boolean isReadOnlyExternal(QName propertyQName)
isReadOnlyExternal
in interface MetadataDescriptor
propertyQName
-
public boolean isStaticValue(QName propertyQName, java.lang.Object value)
isStaticValue
in interface MetadataDescriptor
propertyQName
- value
-
public boolean isValidValue(QName propertyQName, java.lang.Object value)
isValidValue
in interface MetadataDescriptor
propertyQName
- value
-
public org.w3c.dom.Element toXML()
XmlSerializable
toXML
in interface XmlSerializable
public org.w3c.dom.Element toXML(org.w3c.dom.Document doc)
XmlSerializable
toXML
in interface XmlSerializable
doc
- The DOM Document that will be used to create all of the nodes
in the resulting XML fragment.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |