|
TPTP 4.4.0 Monitoring Tools Project Internal API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.tptp.wsdm.tooling.util.internal.CapUtils
Utility class to handle different parts of capability.
| Constructor Summary | |
|---|---|
CapUtils()
|
|
| Method Summary | |
|---|---|
static org.w3c.dom.Document |
createDocument(org.xml.sax.InputSource source)
Creates DOM document from InputSource. |
static org.w3c.dom.Document |
createDocument(java.io.InputStream stream)
Creates DOM document from InputStream. |
static org.w3c.dom.Document |
createDocument(java.lang.String xml)
Creates DOM document from XML String. |
static java.lang.String |
getCapabilityNameFromQName(java.lang.String qname)
Returns the capability name form qname. |
static java.lang.String |
getCapabilityPrefixFromQName(java.lang.String qname)
Returns the capability prefix form qname. |
static int |
getInstancesOfOperation(org.eclipse.tptp.wsdm.tooling.model.capabilities.Capability model,
java.lang.String opName)
Returns the instances of operation of the given name. |
static int |
getInstancesOfParameter(CapabilityDefinition capabilityDefinition,
javax.wsdl.Operation operation,
java.lang.String paramName)
Returns the instances of parameter of the given name. |
static int |
getInstancesOfProperty(org.eclipse.tptp.wsdm.tooling.model.capabilities.Capability model,
java.lang.String propName)
Returns the instances of property of the given name. |
static int |
getMaxOccurs(org.eclipse.xsd.XSDElementDeclaration resourcePropertyElement,
org.eclipse.xsd.XSDElementDeclaration property)
Returns the maxoccurs of property. |
static int |
getMinOccurs(org.eclipse.xsd.XSDElementDeclaration resourcePropertyElement,
org.eclipse.xsd.XSDElementDeclaration property)
Returns the minoccurs of property. |
static java.lang.String |
getName(org.eclipse.tptp.wsdm.tooling.model.capabilities.Property property)
Returns the name of the property. |
static java.lang.String |
getNamespace(org.eclipse.tptp.wsdm.tooling.model.capabilities.Capability cap)
Returns the namespace of given capability. |
static java.util.List |
getPropertiesSchemas(CapabilityDefinition definition,
org.eclipse.xsd.XSDElementDeclaration resourcePropertyElement)
Retruns the list of XSDSchemas that represents the container of properties of capability. |
static org.eclipse.tptp.wsdm.tooling.model.capabilities.Property |
getProperty(org.eclipse.tptp.wsdm.tooling.model.capabilities.Capability capability,
java.lang.String namespace,
java.lang.String propertyName)
Returns the property of the given name. |
static org.eclipse.xsd.XSDElementDeclaration[] |
getResolvedProperties(CapabilityDefinition definition,
org.eclipse.xsd.XSDElementDeclaration resourcePropertyElement)
Returns the properties resolved from resourcePropertyElement. |
static org.eclipse.tptp.wsdm.tooling.model.capabilities.Topic |
getRootTopic(org.eclipse.tptp.wsdm.tooling.model.capabilities.Topic topic)
This method will retun the root topic , provided any child topic or root topic itself. |
static boolean |
isOperationNameConflicted(java.lang.String operationName)
Returns true if given operation name conflicted with super java capability implementation classes. |
static boolean |
isRootTopic(org.eclipse.tptp.wsdm.tooling.model.capabilities.Topic topic)
Return true if given topic is a root topic |
static java.lang.String |
validateJavaIdentifier(java.lang.String name)
Validate whether given string is valid identifier or not NOTE : Fix for defect [#47609] Validation needed on text fields in editors |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CapUtils()
| Method Detail |
public static org.eclipse.tptp.wsdm.tooling.model.capabilities.Topic getRootTopic(org.eclipse.tptp.wsdm.tooling.model.capabilities.Topic topic)
public static boolean isRootTopic(org.eclipse.tptp.wsdm.tooling.model.capabilities.Topic topic)
public static java.lang.String getCapabilityNameFromQName(java.lang.String qname)
public static java.lang.String getCapabilityPrefixFromQName(java.lang.String qname)
public static java.lang.String getNamespace(org.eclipse.tptp.wsdm.tooling.model.capabilities.Capability cap)
public static java.util.List getPropertiesSchemas(CapabilityDefinition definition,
org.eclipse.xsd.XSDElementDeclaration resourcePropertyElement)
public static int getMinOccurs(org.eclipse.xsd.XSDElementDeclaration resourcePropertyElement,
org.eclipse.xsd.XSDElementDeclaration property)
public static int getMaxOccurs(org.eclipse.xsd.XSDElementDeclaration resourcePropertyElement,
org.eclipse.xsd.XSDElementDeclaration property)
public static org.eclipse.xsd.XSDElementDeclaration[] getResolvedProperties(CapabilityDefinition definition,
org.eclipse.xsd.XSDElementDeclaration resourcePropertyElement)
public static int getInstancesOfProperty(org.eclipse.tptp.wsdm.tooling.model.capabilities.Capability model,
java.lang.String propName)
public static int getInstancesOfOperation(org.eclipse.tptp.wsdm.tooling.model.capabilities.Capability model,
java.lang.String opName)
public static int getInstancesOfParameter(CapabilityDefinition capabilityDefinition,
javax.wsdl.Operation operation,
java.lang.String paramName)
public static java.lang.String validateJavaIdentifier(java.lang.String name)
public static org.eclipse.tptp.wsdm.tooling.model.capabilities.Property getProperty(org.eclipse.tptp.wsdm.tooling.model.capabilities.Capability capability,
java.lang.String namespace,
java.lang.String propertyName)
public static java.lang.String getName(org.eclipse.tptp.wsdm.tooling.model.capabilities.Property property)
public static boolean isOperationNameConflicted(java.lang.String operationName)
public static org.w3c.dom.Document createDocument(org.xml.sax.InputSource source)
throws java.io.IOException,
org.xml.sax.SAXException
java.io.IOException
org.xml.sax.SAXException
public static org.w3c.dom.Document createDocument(java.io.InputStream stream)
throws java.io.IOException,
org.xml.sax.SAXException
java.io.IOException
org.xml.sax.SAXException
public static org.w3c.dom.Document createDocument(java.lang.String xml)
throws java.io.IOException,
org.xml.sax.SAXException
java.io.IOException
org.xml.sax.SAXException
|
TPTP 4.4.0 Monitoring Tools Project Internal API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||