|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface XSDNamedComponent
A representation of the model object 'Named Component'.
It is used to represent aspects common to
attribute declarations
,
attribute group definitions
,
complex type definitions
,
element declarations
,
identity constraint definitions
,
model groups definitions
,
notation declarations
, and
simple type definitions
.
The following features are supported:
XSDPackage.getXSDNamedComponent()
Method Summary | |
---|---|
java.lang.String |
getAliasName()
Returns the value of the 'Alias Name' attribute |
java.lang.String |
getAliasURI()
Returns the value of the 'Alias URI' attribute |
java.lang.String |
getName()
Returns the value of the 'Name' attribute |
java.lang.String |
getQName()
Returns the value of the 'QName' attribute |
java.lang.String |
getQName(XSDConcreteComponent relativeToComponent)
Returns this named component's ' QName '
in the context of the given component |
java.lang.String |
getTargetNamespace()
Returns the value of the 'Target Namespace' attribute |
java.lang.String |
getURI()
Returns the value of the 'URI' attribute |
boolean |
hasNameAndTargetNamespace(java.lang.String name,
java.lang.String targetNamespace)
Returns whether this named component has the given name and target namespace |
boolean |
hasSameNameAndTargetNamespace(XSDNamedComponent xsdNamedComponent)
Returns whether this named component and the given named component are named the same |
boolean |
hasURI(java.lang.String uri)
Returns whether this named component has the given URI |
void |
setName(java.lang.String value)
Sets the value of the ' Name ' attribute |
void |
setTargetNamespace(java.lang.String value)
Sets the value of the ' Target Namespace ' attribute |
Methods inherited from interface org.eclipse.emf.ecore.EObject |
---|
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset |
Methods inherited from interface org.eclipse.emf.common.notify.Notifier |
---|
eAdapters, eDeliver, eNotify, eSetDeliver |
Method Detail |
---|
java.lang.String getName()
This represents the value of the attribute declaration name, attribute group definition name, complex type definition name, element declaration name, identity constraint definition name, model group definition name, notation declaration name, or simple type definition name (*) infoset property.
setName(String)
,
XSDPackage.getXSDNamedComponent_Name()
void setName(java.lang.String value)
Name
' attribute.
value
- the new value of the 'Name' attribute.getName()
java.lang.String getTargetNamespace()
This represents the value of the
attribute declaration target namespace,
attribute group definition target namespace,
complex type definition target namespace,
element declaration target namespace,
identity constraint definition target namespace,
model group definition target namespace,
notation declaration target namespace, or
simple type definition target namespace
(*)
infoset property.
It is computed from the target namespace
of the schema
and should typically not be set directly;
in the case of locally scoped features
,
the value is also affected by the form
.
setTargetNamespace(String)
,
XSDPackage.getXSDNamedComponent_TargetNamespace()
void setTargetNamespace(java.lang.String value)
Target Namespace
' attribute.
value
- the new value of the 'Target Namespace' attribute.getTargetNamespace()
java.lang.String getAliasName()
This attempts to construct a relatively meaningful name for an anonymous component
by using the name of the containing component and an indication of the relation to that component,
For example,
"E_._type
" would be the alias name of the anonymous type definition of the element "E
" and
"LT_._item
" would be the alias name of the anonymous item type definition of the list type defintion "LT
".
XSDPackage.getXSDNamedComponent_AliasName()
java.lang.String getURI()
This is equivalent to the string
<where atarget namespace
>#<name
>
null
target namespace is taken to mean an empty string.
XSDConcreteComponent.resolveAttributeDeclarationURI(java.lang.String)
,
XSDConcreteComponent.resolveAttributeGroupDefinitionURI(java.lang.String)
,
XSDConcreteComponent.resolveComplexTypeDefinitionURI(java.lang.String)
,
XSDConcreteComponent.resolveElementDeclarationURI(java.lang.String)
,
XSDConcreteComponent.resolveIdentityConstraintDefinitionURI(java.lang.String)
,
XSDConcreteComponent.resolveModelGroupDefinitionURI(java.lang.String)
,
XSDConcreteComponent.resolveNotationDeclarationURI(java.lang.String)
,
XSDConcreteComponent.resolveSimpleTypeDefinitionURI(java.lang.String)
,
XSDPackage.getXSDNamedComponent_URI()
java.lang.String getAliasURI()
This is equivalent to the string
<where atarget namespace
>#<alias name
>
null
target namespace is taken to mean an empty string.
There is no support yet for resolving this URI;
only globally scoped names can be resolved.
XSDPackage.getXSDNamedComponent_AliasURI()
java.lang.String getQName()
This concrete attribute is equivalent to
xsdNamedComponent.getQName
(xsdNamedComponent)
getQName(org.eclipse.xsd.XSDConcreteComponent)
,
XSDPackage.getXSDNamedComponent_QName()
java.lang.String getQName(XSDConcreteComponent relativeToComponent)
QName
'
in the context of the given component.
relativeToComponent
- the context at which to express the QName.
QName
'.getQName()
boolean hasSameNameAndTargetNamespace(XSDNamedComponent xsdNamedComponent)
This is equivalent to
xsdNamedComponent.hasNameAndTargetNamespace
(xsdOtherNamedComponent.getName
(), xsdOtherNamedComponent.getTargetNamespace
())
xsdNamedComponent
- another named component.
hasNameAndTargetNamespace(java.lang.String, java.lang.String)
,
getName()
,
getTargetNamespace()
boolean hasNameAndTargetNamespace(java.lang.String name, java.lang.String targetNamespace)
This is equivalent to
(targetNamespace == null ? getTargetNamespace() == null : targetNamespace.equals(getTargetNamespace())) && (name == null ? getName() == null : name.equals(getName()))
name
- the name.targetNamespace
- namespace the target namespace.
hasSameNameAndTargetNamespace(org.eclipse.xsd.XSDNamedComponent)
,
hasURI(java.lang.String)
,
getName()
,
getTargetNamespace()
boolean hasURI(java.lang.String uri)
This is equivalent to
String theTargetNamespace = getTargetNamespace(); if (theTargetNamespace == null) { theTargetNamespace = ""; } String theName = getName(); if (theName == null) { theName = ""; } return qName.startsWith(theTargetNamespace) && qName.endsWith(theName) && qName.length() == theName.length() + theTargetNamespace.length() + 1;
uri
- the URI.
hasNameAndTargetNamespace(java.lang.String, java.lang.String)
,
hasSameNameAndTargetNamespace(org.eclipse.xsd.XSDNamedComponent)
,
getURI()
|
Copyright 2001-2006 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |