public class XSDHelper
extends java.lang.Object
Constructor and Description |
---|
XSDHelper() |
Modifier and Type | Method and Description |
---|---|
static EClass |
getClass(java.lang.String uri,
java.lang.String typeName)
Returns the EClass object from the given name space URI and type name.
|
static EStructuralFeature |
getGlobalFeature(java.lang.String qualifiedName)
Returns the EStructuralFeature objct from the given qualified property name.
|
static EStructuralFeature |
getGlobalFeature(java.lang.String uri,
java.lang.String featureName)
Returns the global EStructuralFeature object from the given name space URI and feature name.
|
static Property |
getGlobalProperty(java.lang.String uri,
java.lang.String propertyName)
Returns the global Property object from the given name space URI and property name.
|
static EStructuralFeature |
getLocalFeature(java.lang.String typeUri,
java.lang.String typeName,
java.lang.String featureUri,
java.lang.String featureName)
Returns the local EStructuralFeature object from the given type name and its name space URI, as well as the feature name and its name space URI.
|
static Property |
getLocalProperty(java.lang.String typeUri,
java.lang.String typeName,
java.lang.String propertyUri,
java.lang.String propertyName)
Returns the local Property object from the the given type name and its name space URI, as well as the property name and its name space URI.
|
static java.lang.String |
getNsURIFromQualifiedName(java.lang.String qualifiedName)
Returns the name space URI from the given qualified name.
|
static EPackage |
getPackage(java.lang.String uri)
Returns the EPackage object from the given name space URI
|
static java.lang.String |
getPackageNsPrefix(java.lang.String nsURI)
Returns the name space prefix of the package from the given name space URI.
|
static java.lang.String |
getPackageNsURI(java.lang.String nsPrefix)
Returns the name space URI of the package from the given name space prefix.
|
static java.lang.String |
getQualifiedPropertyName(EStructuralFeature feature)
Returns the qualified property name from the given feature.
|
static java.lang.String |
getQualifiedPropertyName(Property property)
Returns the qualified property name from the given property.
|
public static EClass getClass(java.lang.String uri, java.lang.String typeName)
uri
- the name space URI of the type. If it is null or empty, default is virtual member manager name space URI ("http://www.ibm.com/websphere/wim").typeName
- the name of the type.public static EStructuralFeature getGlobalFeature(java.lang.String uri, java.lang.String featureName)
uri
- the name space URI of the feature. If it is null or empty, default is virtual member manager name space URI ("http://www.ibm.com/websphere/wim").featureName
- the name of the feature.public static java.lang.String getPackageNsURI(java.lang.String nsPrefix)
nsPrefix
- The name space prefix.public static java.lang.String getNsURIFromQualifiedName(java.lang.String qualifiedName)
qualifiedName
- The qualified namepublic static java.lang.String getPackageNsPrefix(java.lang.String nsURI)
nsURI
- The name space URI.public static EStructuralFeature getGlobalFeature(java.lang.String qualifiedName)
qualifiedName
- The qualified property name.public static Property getGlobalProperty(java.lang.String uri, java.lang.String propertyName)
uri
- the name space URI of the property. If it is null or empty, default is virtual member manager name space URI ("http://www.ibm.com/websphere/wim").propertyName
- the name of the propertypublic static EStructuralFeature getLocalFeature(java.lang.String typeUri, java.lang.String typeName, java.lang.String featureUri, java.lang.String featureName)
typeUri
- the name space URI of the type. If it is null or empty, default is virtual member manager name space URI ("http://www.ibm.com/websphere/wim").typeName
- the name of the type.featureUri
- the name space URI of the feature. If it is null or empty, default is virtual member manager name space URI ("http://www.ibm.com/websphere/wim").featureName
- the name of the feature.public static Property getLocalProperty(java.lang.String typeUri, java.lang.String typeName, java.lang.String propertyUri, java.lang.String propertyName)
typeUri
- the name space URI of the type. If it is null or empty, default is virtual member manager name space URI ("http://www.ibm.com/websphere/wim").typeName
- the name of the type.propertyUri
- the name space URI of the property. If it is null or empty, default is virtual member manager name space URI ("http://www.ibm.com/websphere/wim").propertyName
- the name of the property.public static EPackage getPackage(java.lang.String uri)
uri
- the name space URI of the package. If it is null or empty, default is virtual member manager name space URI ("http://www.ibm.com/websphere/wim").public static java.lang.String getQualifiedPropertyName(Property property)
wimext:EPerson,
yourco:MyPerson.
property
- The property objectpublic static java.lang.String getQualifiedPropertyName(EStructuralFeature feature)
wimext:EPerson,
yourco:MyPerson.
property
- The EStructuralFeature object