|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.ecore.impl.BasicEObjectImpl
org.eclipse.emf.ecore.impl.EObjectImpl
org.eclipse.xsd.impl.XSDConcreteComponentImpl
org.eclipse.xsd.impl.XSDComponentImpl
org.eclipse.xsd.impl.XSDNamedComponentImpl
An implementation of the model object 'Named Component'.
The following features are implemented:
| Nested Class Summary | |
|---|---|
static class |
XSDNamedComponentImpl.Comparator
|
static class |
XSDNamedComponentImpl.StringPairComparator
|
| Nested classes inherited from class org.eclipse.xsd.impl.XSDConcreteComponentImpl |
|---|
XSDConcreteComponentImpl.XSDContentsEList |
| Nested classes inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl |
|---|
BasicEObjectImpl.EPropertiesHolder, BasicEObjectImpl.EPropertiesHolderBaseImpl, BasicEObjectImpl.EPropertiesHolderImpl |
| Nested classes inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl |
|---|
BasicNotifierImpl.EAdapterList |
| Nested classes inherited from class org.eclipse.emf.ecore.InternalEObject |
|---|
InternalEObject.EStore |
| Field Summary | |
|---|---|
protected static java.lang.String |
ALIAS_NAME_EDEFAULT
The default value of the ' Alias Name' attribute |
protected static java.lang.String |
ALIAS_URI_EDEFAULT
The default value of the ' Alias URI' attribute |
protected java.lang.String |
name
The cached value of the ' Name' attribute |
protected static java.lang.String |
NAME_EDEFAULT
The default value of the ' Name' attribute |
protected static java.lang.String |
QNAME_EDEFAULT
The default value of the ' QName' attribute |
protected static java.lang.String |
TARGET_NAMESPACE_EDEFAULT
The default value of the ' Target Namespace' attribute |
protected java.lang.String |
targetNamespace
The cached value of the ' Target Namespace' attribute |
protected static java.lang.String |
URI_EDEFAULT
The default value of the ' URI' attribute |
| Fields inherited from class org.eclipse.xsd.impl.XSDConcreteComponentImpl |
|---|
ANALYZED, ANALYZING, CIRCULAR, diagnostics, element, ELEMENT_EDEFAULT, ERROR, FATAL, forceResolve, INFORMATION, isReconciling, UNANALYZED, updatingDOM, WARNING, xsdContents |
| Fields inherited from class org.eclipse.emf.ecore.impl.EObjectImpl |
|---|
eAdapters, eContainer, eContainerFeatureID, EDELIVER, EDYNAMIC_CLASS, eFlags, ELAST_EOBJECT_FLAG, ELAST_NOTIFIER_FLAG, eProperties, EPROXY |
| Fields inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl |
|---|
EVIRTUAL_GET, EVIRTUAL_IS_SET, EVIRTUAL_NO_VALUE, EVIRTUAL_SET, EVIRTUAL_UNSET |
| Fields inherited from interface org.eclipse.emf.ecore.InternalEObject |
|---|
EOPPOSITE_FEATURE_BASE |
| Constructor Summary | |
|---|---|
protected |
XSDNamedComponentImpl()
|
| Method Summary | |
|---|---|
static void |
addToSortedList(java.util.List xsdNamedComponents,
XSDNamedComponent xsdNamedComponent)
|
protected void |
adoptBy(XSDSchema xsdSchema)
|
protected void |
changeAttribute(EAttribute eAttribute)
|
java.lang.Object |
eGet(int featureID,
boolean resolve,
boolean coreType)
|
boolean |
eIsSet(int featureID)
|
void |
eSet(int featureID,
java.lang.Object newValue)
|
protected EClass |
eStaticClass()
|
void |
eUnset(int featureID)
|
static XSDNamedComponent |
findInSortedList(java.util.List xsdNamedComponents,
java.lang.String targetNamespace,
java.lang.String localName)
|
java.lang.String |
getAliasName()
Returns the value of the 'Alias Name' attribute |
java.lang.String |
getAliasURI()
|
java.lang.String |
getName()
|
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 |
XSDNamedComponent |
getResolvedNamedComponent()
|
java.lang.String |
getTargetNamespace()
|
java.lang.String |
getURI()
Returns the value of the 'URI' attribute |
protected java.lang.String |
getURIReferenceLabel()
|
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 |
boolean |
isNamedComponentReference()
|
static void |
mergeToSortedList(java.util.List xsdNamedComponentsTarget,
java.util.List xsdNamedComponentsSource)
|
protected void |
patch()
|
protected void |
patchTargetNamespaceAttribute()
|
protected void |
reconcileAttributes(org.w3c.dom.Element changedElement)
|
protected void |
reconcileNameAttribute()
|
void |
setName(java.lang.String newName)
|
void |
setTargetNamespace(java.lang.String newTargetNamespace)
|
static java.util.List |
sortNamedComponents(java.util.Collection xsdNamedComponents)
|
java.lang.String |
toString()
|
| Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl |
|---|
eAdapters, eBasicAdapters, eBasicProperties, eBasicSetContainer, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eIsProxy, eProperties, eSetClass, eSetDeliver, eSetProxyURI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eclipse.emf.ecore.EObject |
|---|
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset |
| Methods inherited from interface org.eclipse.emf.common.notify.Notifier |
|---|
eAdapters, eDeliver, eNotify, eSetDeliver |
| Field Detail |
protected static final java.lang.String NAME_EDEFAULT
Name' attribute.
XSDNamedComponentImpl.getName()protected java.lang.String name
Name' attribute.
XSDNamedComponentImpl.getName()protected static final java.lang.String TARGET_NAMESPACE_EDEFAULT
Target Namespace' attribute.
XSDNamedComponentImpl.getTargetNamespace()protected java.lang.String targetNamespace
Target Namespace' attribute.
XSDNamedComponentImpl.getTargetNamespace()protected static final java.lang.String ALIAS_NAME_EDEFAULT
Alias Name' attribute.
XSDNamedComponentImpl.getAliasName()protected static final java.lang.String URI_EDEFAULT
URI' attribute.
XSDNamedComponentImpl.getURI()protected static final java.lang.String ALIAS_URI_EDEFAULT
Alias URI' attribute.
XSDNamedComponentImpl.getAliasURI()protected static final java.lang.String QNAME_EDEFAULT
QName' attribute.
XSDNamedComponentImpl.getQName()| Constructor Detail |
protected XSDNamedComponentImpl()
| Method Detail |
public static java.util.List sortNamedComponents(java.util.Collection xsdNamedComponents)
public static void addToSortedList(java.util.List xsdNamedComponents,
XSDNamedComponent xsdNamedComponent)
public static XSDNamedComponent findInSortedList(java.util.List xsdNamedComponents,
java.lang.String targetNamespace,
java.lang.String localName)
public static void mergeToSortedList(java.util.List xsdNamedComponentsTarget,
java.util.List xsdNamedComponentsSource)
protected EClass eStaticClass()
eStaticClass in class XSDComponentImplpublic java.lang.String getName()
getName in interface XSDNamedComponentXSDNamedComponent.setName(String),
XSDPackage.getXSDNamedComponent_Name()public void setName(java.lang.String newName)
setName in interface XSDNamedComponentnewName - the new value of the 'Name' attribute.XSDNamedComponent.getName()public java.lang.String getTargetNamespace()
getTargetNamespace in interface XSDNamedComponentXSDNamedComponent.setTargetNamespace(String),
XSDPackage.getXSDNamedComponent_TargetNamespace()public void setTargetNamespace(java.lang.String newTargetNamespace)
setTargetNamespace in interface XSDNamedComponentnewTargetNamespace - the new value of the 'Target Namespace' attribute.XSDNamedComponent.getTargetNamespace()protected java.lang.String getURIReferenceLabel()
getURIReferenceLabel in class XSDConcreteComponentImplpublic java.lang.String getAliasName()
XSDNamedComponent
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".
getAliasName in interface XSDNamedComponentXSDPackage.getXSDNamedComponent_AliasName()public java.lang.String getURI()
XSDNamedComponentThis is equivalent to the string
<where atarget namespace>#<name>
null target namespace is taken to mean an empty string.
getURI in interface XSDNamedComponentXSDConcreteComponent.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()public java.lang.String getAliasURI()
getAliasURI in interface XSDNamedComponentXSDPackage.getXSDNamedComponent_AliasURI()public java.lang.String getQName(XSDConcreteComponent relativeToComponent)
XSDNamedComponentQName'
in the context of the given component.
getQName in interface XSDNamedComponentrelativeToComponent - the context at which to express the QName.
QName'.XSDNamedComponent.getQName()public java.lang.String getQName()
XSDNamedComponentThis concrete attribute is equivalent to
xsdNamedComponent.getQName(xsdNamedComponent)
getQName in interface XSDNamedComponentXSDNamedComponent.getQName(org.eclipse.xsd.XSDConcreteComponent),
XSDPackage.getXSDNamedComponent_QName()
public java.lang.Object eGet(int featureID,
boolean resolve,
boolean coreType)
eGet in interface InternalEObjecteGet in class XSDConcreteComponentImpl
public void eSet(int featureID,
java.lang.Object newValue)
eSet in interface InternalEObjecteSet in class XSDConcreteComponentImplpublic void eUnset(int featureID)
eUnset in interface InternalEObjecteUnset in class XSDConcreteComponentImplpublic boolean eIsSet(int featureID)
eIsSet in interface InternalEObjecteIsSet in class XSDConcreteComponentImplpublic java.lang.String toString()
toString in class XSDConcreteComponentImplprotected void patch()
patch in class XSDConcreteComponentImplprotected void patchTargetNamespaceAttribute()
protected void adoptBy(XSDSchema xsdSchema)
adoptBy in class XSDConcreteComponentImplprotected void reconcileAttributes(org.w3c.dom.Element changedElement)
reconcileAttributes in class XSDConcreteComponentImplprotected void reconcileNameAttribute()
protected void changeAttribute(EAttribute eAttribute)
changeAttribute in class XSDConcreteComponentImplpublic boolean isNamedComponentReference()
public XSDNamedComponent getResolvedNamedComponent()
public boolean hasSameNameAndTargetNamespace(XSDNamedComponent xsdNamedComponent)
XSDNamedComponentThis is equivalent to
xsdNamedComponent.hasNameAndTargetNamespace(xsdOtherNamedComponent.getName(), xsdOtherNamedComponent.getTargetNamespace())
hasSameNameAndTargetNamespace in interface XSDNamedComponentxsdNamedComponent - another named component.
XSDNamedComponent.hasNameAndTargetNamespace(java.lang.String, java.lang.String),
XSDNamedComponent.getName(),
XSDNamedComponent.getTargetNamespace()
public boolean hasNameAndTargetNamespace(java.lang.String name,
java.lang.String targetNamespace)
XSDNamedComponentThis is equivalent to
(targetNamespace == null ?
getTargetNamespace() == null :
targetNamespace.equals(getTargetNamespace())) &&
(name == null ?
getName() == null :
name.equals(getName()))
hasNameAndTargetNamespace in interface XSDNamedComponentname - the name.targetNamespace - namespace the target namespace.
XSDNamedComponent.hasSameNameAndTargetNamespace(org.eclipse.xsd.XSDNamedComponent),
XSDNamedComponent.hasURI(java.lang.String),
XSDNamedComponent.getName(),
XSDNamedComponent.getTargetNamespace()public boolean hasURI(java.lang.String uri)
XSDNamedComponentThis 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;
hasURI in interface XSDNamedComponenturi - the URI.
XSDNamedComponent.hasNameAndTargetNamespace(java.lang.String, java.lang.String),
XSDNamedComponent.hasSameNameAndTargetNamespace(org.eclipse.xsd.XSDNamedComponent),
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 | |||||||||||