本文整理汇总了Java中org.eclipse.emf.ecore.xml.namespace.XMLNamespacePackage类的典型用法代码示例。如果您正苦于以下问题:Java XMLNamespacePackage类的具体用法?Java XMLNamespacePackage怎么用?Java XMLNamespacePackage使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
XMLNamespacePackage类属于org.eclipse.emf.ecore.xml.namespace包,在下文中一共展示了XMLNamespacePackage类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: eGet
import org.eclipse.emf.ecore.xml.namespace.XMLNamespacePackage; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType)
{
switch (featureID)
{
case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__MIXED:
if (coreType) return getMixed();
return ((FeatureMap.Internal)getMixed()).getWrapper();
case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
if (coreType) return getXMLNSPrefixMap();
else return getXMLNSPrefixMap().map();
case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
if (coreType) return getXSISchemaLocation();
else return getXSISchemaLocation().map();
case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__BASE:
return getBase();
case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__ID:
return getId();
case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__LANG:
return getLang();
case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__SPACE:
return getSpace();
}
return eDynamicGet(featureID, resolve, coreType);
}
开发者ID:LangleyStudios,项目名称:eclipse-avro,代码行数:31,代码来源:XMLNamespaceDocumentRootImpl.java
示例2: eIsSet
import org.eclipse.emf.ecore.xml.namespace.XMLNamespacePackage; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID)
{
switch (featureID)
{
case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__MIXED:
return mixed != null && !mixed.isEmpty();
case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
return xMLNSPrefixMap != null && !xMLNSPrefixMap.isEmpty();
case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
return xSISchemaLocation != null && !xSISchemaLocation.isEmpty();
case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__BASE:
return BASE_EDEFAULT == null ? base != null : !BASE_EDEFAULT.equals(base);
case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__ID:
return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id);
case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__LANG:
return LANG_EDEFAULT == null ? lang != null : !LANG_EDEFAULT.equals(lang);
case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__SPACE:
return isSetSpace();
}
return eDynamicIsSet(featureID);
}
开发者ID:LangleyStudios,项目名称:eclipse-avro,代码行数:28,代码来源:XMLNamespaceDocumentRootImpl.java
示例3: validateEPackage_WellFormedNsPrefix
import org.eclipse.emf.ecore.xml.namespace.XMLNamespacePackage; //导入依赖的package包/类
/**
* Validates the WellFormedNsPrefix constraint of '<em>EPackage</em>'.
* <!-- begin-user-doc -->
* The namespace prefix must be either the empty string
* or a {@link XMLTypeValidator#validateNCName(String, DiagnosticChain, Map) valid NCName}
* that does not start with any case combination of the three letters
* <a href="http://www.w3.org/TR/REC-xml-names/#xmlReserved">"xml"</a>.
* <!-- end-user-doc -->
* @generated NOT
*/
public boolean validateEPackage_WellFormedNsPrefix(EPackage ePackage, DiagnosticChain diagnostics, Map<Object, Object> context)
{
String nsPrefix = ePackage.getNsPrefix();
boolean
result = "".equals(nsPrefix) ||
nsPrefix != null &&
XMLTypeValidator.INSTANCE.validateNCName(nsPrefix, null, context) &&
(!nsPrefix.toLowerCase().startsWith("xml") || XMLNamespacePackage.eNS_URI.equals(ePackage.getNsURI()));
if (!result && diagnostics != null)
{
diagnostics.add
(createDiagnostic
(Diagnostic.ERROR,
DIAGNOSTIC_SOURCE,
WELL_FORMED_NS_PREFIX,
"_UI_EPackageNsPrefixNotWellFormed_diagnostic",
new Object[] { nsPrefix },
new Object[] { ePackage, EcorePackage.Literals.EPACKAGE__NS_PREFIX },
context));
}
return result;
}
开发者ID:LangleyStudios,项目名称:eclipse-avro,代码行数:33,代码来源:EcoreValidator.java
示例4: validateEPackage_WellFormedNsPrefix
import org.eclipse.emf.ecore.xml.namespace.XMLNamespacePackage; //导入依赖的package包/类
/**
* Validates the WellFormedNsPrefix constraint of '<em>EPackage</em>'.
* <!-- begin-user-doc -->
* The namespace prefix must be either the empty string
* or a {@link XMLTypeValidator#validateNCName(String, DiagnosticChain, Map) valid NCName}
* that does not start with any case combination of the three letters
* <a href="http://www.w3.org/TR/REC-xml-names/#xmlReserved">"xml"</a>.
* <!-- end-user-doc -->
* @generated NOT
*/
public boolean validateEPackage_WellFormedNsPrefix(EPackage ePackage, DiagnosticChain diagnostics, Map<Object, Object> context)
{
String nsPrefix = ePackage.getNsPrefix();
boolean
result = "".equals(nsPrefix) ||
nsPrefix != null &&
XMLTypeValidator.INSTANCE.validateNCName(nsPrefix, null, context) &&
(!nsPrefix.toLowerCase().startsWith("xml") || XMLNamespacePackage.eNS_URI.equals(ePackage.getNsURI()));
if (!result && diagnostics != null)
{
diagnostics.add
(createDiagnostic
(Diagnostic.ERROR,
DIAGNOSTIC_SOURCE,
WELL_FORMED_NS_PREFIX,
"_UI_EPackageNsPrefixNotWellFormed_diagnostic",
new Object[] { nsPrefix },
new Object[] { ePackage },
context));
}
return result;
}
开发者ID:markus1978,项目名称:clickwatch,代码行数:33,代码来源:EcoreValidator.java
示例5: getReferencedEPackages
import org.eclipse.emf.ecore.xml.namespace.XMLNamespacePackage; //导入依赖的package包/类
protected Set<EPackage> getReferencedEPackages(final List<EPackage> packs) {
final HashSet<EPackage> result = CollectionLiterals.<EPackage>newHashSet();
for (final EPackage pkg : packs) {
{
final TreeIterator<EObject> iterator = pkg.eAllContents();
while (iterator.hasNext()) {
{
final EObject obj = iterator.next();
EList<EObject> _eCrossReferences = obj.eCrossReferences();
for (final EObject crossRef : _eCrossReferences) {
boolean _eIsProxy = crossRef.eIsProxy();
if (_eIsProxy) {
URI _eProxyURI = ((InternalEObject) crossRef).eProxyURI();
String _plus = ("Proxy \'" + _eProxyURI);
String _plus_1 = (_plus + "\' could not be resolved");
EMFGeneratorFragment2.LOG.error(_plus_1);
} else {
final EPackage p = EcoreUtil2.<EPackage>getContainerOfType(crossRef, EPackage.class);
if ((p != null)) {
result.add(p);
}
}
}
}
}
}
}
result.removeAll(packs);
result.remove(EcorePackage.eINSTANCE);
result.remove(XMLTypePackage.eINSTANCE);
result.remove(XMLNamespacePackage.eINSTANCE);
return result;
}
开发者ID:eclipse,项目名称:xtext-core,代码行数:34,代码来源:EMFGeneratorFragment2.java
示例6: init
import org.eclipse.emf.ecore.xml.namespace.XMLNamespacePackage; //导入依赖的package包/类
/**
* Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
*
* <p>This method is used to initialize {@link ToscaPackage#eINSTANCE} when that field is accessed.
* Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #eNS_URI
* @see #createPackageContents()
* @see #initializePackageContents()
* @generated
*/
public static ToscaPackage init() {
if (isInited) return (ToscaPackage)EPackage.Registry.INSTANCE.getEPackage(ToscaPackage.eNS_URI);
// Obtain or create and register package
ToscaPackageImpl theToscaPackage = (ToscaPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof ToscaPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new ToscaPackageImpl());
isInited = true;
// Initialize simple dependencies
XMLNamespacePackage.eINSTANCE.eClass();
XMLTypePackage.eINSTANCE.eClass();
// Create package meta-data objects
theToscaPackage.createPackageContents();
// Initialize created meta-data
theToscaPackage.initializePackageContents();
// Register package validator
EValidator.Registry.INSTANCE.put
(theToscaPackage,
new EValidator.Descriptor() {
public EValidator getEValidator() {
return ToscaValidator.INSTANCE;
}
});
// Mark meta-data to indicate it can't be changed
theToscaPackage.freeze();
// Update the registry and return the package
EPackage.Registry.INSTANCE.put(ToscaPackage.eNS_URI, theToscaPackage);
return theToscaPackage;
}
开发者ID:alexander-bergmayr,项目名称:caml2tosca,代码行数:48,代码来源:ToscaPackageImpl.java
示例7: init
import org.eclipse.emf.ecore.xml.namespace.XMLNamespacePackage; //导入依赖的package包/类
/**
* Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
*
* <p>This method is used to initialize {@link XlinkPackage#eINSTANCE} when that field is accessed.
* Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #eNS_URI
* @see #createPackageContents()
* @see #initializePackageContents()
* @generated
*/
public static XlinkPackage init() {
if (isInited) return (XlinkPackage)EPackage.Registry.INSTANCE.getEPackage(XlinkPackage.eNS_URI);
// Obtain or create and register package
XlinkPackageImpl theXlinkPackage = (XlinkPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof XlinkPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new XlinkPackageImpl());
isInited = true;
// Initialize simple dependencies
XMLNamespacePackage.eINSTANCE.eClass();
XMLTypePackage.eINSTANCE.eClass();
// Obtain or create and register interdependencies
XmldsigPackageImpl theXmldsigPackage = (XmldsigPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(XmldsigPackage.eNS_URI) instanceof XmldsigPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(XmldsigPackage.eNS_URI) : XmldsigPackage.eINSTANCE);
PartnerPackageImpl thePartnerPackage = (PartnerPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(PartnerPackage.eNS_URI) instanceof PartnerPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(PartnerPackage.eNS_URI) : PartnerPackage.eINSTANCE);
// Create package meta-data objects
theXlinkPackage.createPackageContents();
theXmldsigPackage.createPackageContents();
thePartnerPackage.createPackageContents();
// Initialize created meta-data
theXlinkPackage.initializePackageContents();
theXmldsigPackage.initializePackageContents();
thePartnerPackage.initializePackageContents();
// Mark meta-data to indicate it can't be changed
theXlinkPackage.freeze();
// Update the registry and return the package
EPackage.Registry.INSTANCE.put(XlinkPackage.eNS_URI, theXlinkPackage);
return theXlinkPackage;
}
开发者ID:GRA-UML,项目名称:tool,代码行数:47,代码来源:XlinkPackageImpl.java
示例8: init
import org.eclipse.emf.ecore.xml.namespace.XMLNamespacePackage; //导入依赖的package包/类
/**
* Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
*
* <p>This method is used to initialize {@link XmldsigPackage#eINSTANCE} when that field is accessed.
* Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #eNS_URI
* @see #createPackageContents()
* @see #initializePackageContents()
* @generated
*/
public static XmldsigPackage init() {
if (isInited) return (XmldsigPackage)EPackage.Registry.INSTANCE.getEPackage(XmldsigPackage.eNS_URI);
// Obtain or create and register package
XmldsigPackageImpl theXmldsigPackage = (XmldsigPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof XmldsigPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new XmldsigPackageImpl());
isInited = true;
// Initialize simple dependencies
XMLNamespacePackage.eINSTANCE.eClass();
XMLTypePackage.eINSTANCE.eClass();
// Obtain or create and register interdependencies
PartnerPackageImpl thePartnerPackage = (PartnerPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(PartnerPackage.eNS_URI) instanceof PartnerPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(PartnerPackage.eNS_URI) : PartnerPackage.eINSTANCE);
XlinkPackageImpl theXlinkPackage = (XlinkPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(XlinkPackage.eNS_URI) instanceof XlinkPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(XlinkPackage.eNS_URI) : XlinkPackage.eINSTANCE);
// Create package meta-data objects
theXmldsigPackage.createPackageContents();
thePartnerPackage.createPackageContents();
theXlinkPackage.createPackageContents();
// Initialize created meta-data
theXmldsigPackage.initializePackageContents();
thePartnerPackage.initializePackageContents();
theXlinkPackage.initializePackageContents();
// Mark meta-data to indicate it can't be changed
theXmldsigPackage.freeze();
// Update the registry and return the package
EPackage.Registry.INSTANCE.put(XmldsigPackage.eNS_URI, theXmldsigPackage);
return theXmldsigPackage;
}
开发者ID:GRA-UML,项目名称:tool,代码行数:47,代码来源:XmldsigPackageImpl.java
示例9: registerEPackageStd
import org.eclipse.emf.ecore.xml.namespace.XMLNamespacePackage; //导入依赖的package包/类
private final void registerEPackageStd() {
EPackage.Registry.INSTANCE.clear();
EPackage.Registry.INSTANCE.put(ReqIF10Package.eNS_URI,
ReqIF10Package.eINSTANCE);
EPackage.Registry.INSTANCE.put(XhtmlPackage.eNS_URI,
XhtmlPackage.eINSTANCE);
EPackage.Registry.INSTANCE.put(DatatypesPackage.eNS_URI,
DatatypesPackage.eINSTANCE);
EPackage.Registry.INSTANCE.put(XMLNamespacePackage.eNS_URI,
XMLNamespacePackage.eINSTANCE);
}
开发者ID:KayErikMuench,项目名称:reqiftools,代码行数:12,代码来源:ReqIF10Parser.java
示例10: init
import org.eclipse.emf.ecore.xml.namespace.XMLNamespacePackage; //导入依赖的package包/类
/**
* Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
*
* <p>This method is used to initialize {@link XMLNamespacePackage#eINSTANCE} when that field is accessed.
* Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #eNS_URI
* @see #createPackageContents()
* @see #initializePackageContents()
* @generated
*/
public static XMLNamespacePackage init()
{
if (isInited) return (XMLNamespacePackage)EPackage.Registry.INSTANCE.getEPackage(XMLNamespacePackage.eNS_URI);
// Obtain or create and register package
XMLNamespacePackageImpl theXMLNamespacePackage = (XMLNamespacePackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof XMLNamespacePackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new XMLNamespacePackageImpl());
isInited = true;
// Initialize simple dependencies
XMLTypePackage.eINSTANCE.eClass();
// Create package meta-data objects
theXMLNamespacePackage.createPackageContents();
// Initialize created meta-data
theXMLNamespacePackage.initializePackageContents();
// Register package validator
EValidator.Registry.INSTANCE.put
(theXMLNamespacePackage,
new EValidator.Descriptor()
{
public EValidator getEValidator()
{
return XMLNamespaceValidator.INSTANCE;
}
});
// Mark meta-data to indicate it can't be changed
theXMLNamespacePackage.freeze();
// Update the registry and return the package
EPackage.Registry.INSTANCE.put(XMLNamespacePackage.eNS_URI, theXMLNamespacePackage);
return theXMLNamespacePackage;
}
开发者ID:LangleyStudios,项目名称:eclipse-avro,代码行数:50,代码来源:XMLNamespacePackageImpl.java
示例11: eStaticClass
import org.eclipse.emf.ecore.xml.namespace.XMLNamespacePackage; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass()
{
return XMLNamespacePackage.Literals.XML_NAMESPACE_DOCUMENT_ROOT;
}
开发者ID:LangleyStudios,项目名称:eclipse-avro,代码行数:11,代码来源:XMLNamespaceDocumentRootImpl.java
示例12: getXMLNSPrefixMap
import org.eclipse.emf.ecore.xml.namespace.XMLNamespacePackage; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EMap<String, String> getXMLNSPrefixMap()
{
if (xMLNSPrefixMap == null)
{
xMLNSPrefixMap = new EcoreEMap<String,String>(EcorePackage.Literals.ESTRING_TO_STRING_MAP_ENTRY, EStringToStringMapEntryImpl.class, this, XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__XMLNS_PREFIX_MAP);
}
return xMLNSPrefixMap;
}
开发者ID:LangleyStudios,项目名称:eclipse-avro,代码行数:14,代码来源:XMLNamespaceDocumentRootImpl.java
示例13: getXSISchemaLocation
import org.eclipse.emf.ecore.xml.namespace.XMLNamespacePackage; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EMap<String, String> getXSISchemaLocation()
{
if (xSISchemaLocation == null)
{
xSISchemaLocation = new EcoreEMap<String,String>(EcorePackage.Literals.ESTRING_TO_STRING_MAP_ENTRY, EStringToStringMapEntryImpl.class, this, XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION);
}
return xSISchemaLocation;
}
开发者ID:LangleyStudios,项目名称:eclipse-avro,代码行数:14,代码来源:XMLNamespaceDocumentRootImpl.java
示例14: setBase
import org.eclipse.emf.ecore.xml.namespace.XMLNamespacePackage; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setBase(String newBase)
{
String oldBase = base;
base = newBase;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__BASE, oldBase, base));
}
开发者ID:LangleyStudios,项目名称:eclipse-avro,代码行数:13,代码来源:XMLNamespaceDocumentRootImpl.java
示例15: setId
import org.eclipse.emf.ecore.xml.namespace.XMLNamespacePackage; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setId(String newId)
{
String oldId = id;
id = newId;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__ID, oldId, id));
}
开发者ID:LangleyStudios,项目名称:eclipse-avro,代码行数:13,代码来源:XMLNamespaceDocumentRootImpl.java
示例16: setLang
import org.eclipse.emf.ecore.xml.namespace.XMLNamespacePackage; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setLang(String newLang)
{
String oldLang = lang;
lang = newLang;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__LANG, oldLang, lang));
}
开发者ID:LangleyStudios,项目名称:eclipse-avro,代码行数:13,代码来源:XMLNamespaceDocumentRootImpl.java
示例17: setSpace
import org.eclipse.emf.ecore.xml.namespace.XMLNamespacePackage; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setSpace(SpaceType newSpace)
{
SpaceType oldSpace = space;
space = newSpace == null ? SPACE_EDEFAULT : newSpace;
boolean oldSpaceESet = spaceESet;
spaceESet = true;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__SPACE, oldSpace, space, !oldSpaceESet));
}
开发者ID:LangleyStudios,项目名称:eclipse-avro,代码行数:15,代码来源:XMLNamespaceDocumentRootImpl.java
示例18: unsetSpace
import org.eclipse.emf.ecore.xml.namespace.XMLNamespacePackage; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void unsetSpace()
{
SpaceType oldSpace = space;
boolean oldSpaceESet = spaceESet;
space = SPACE_EDEFAULT;
spaceESet = false;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.UNSET, XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__SPACE, oldSpace, SPACE_EDEFAULT, oldSpaceESet));
}
开发者ID:LangleyStudios,项目名称:eclipse-avro,代码行数:15,代码来源:XMLNamespaceDocumentRootImpl.java
示例19: eInverseRemove
import org.eclipse.emf.ecore.xml.namespace.XMLNamespacePackage; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
{
switch (featureID)
{
case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__MIXED:
return ((InternalEList<?>)getMixed()).basicRemove(otherEnd, msgs);
case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
return ((InternalEList<?>)getXMLNSPrefixMap()).basicRemove(otherEnd, msgs);
case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
return ((InternalEList<?>)getXSISchemaLocation()).basicRemove(otherEnd, msgs);
}
return eDynamicInverseRemove(otherEnd, featureID, msgs);
}
开发者ID:LangleyStudios,项目名称:eclipse-avro,代码行数:20,代码来源:XMLNamespaceDocumentRootImpl.java
示例20: eSet
import org.eclipse.emf.ecore.xml.namespace.XMLNamespacePackage; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eSet(int featureID, Object newValue)
{
switch (featureID)
{
case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__MIXED:
((FeatureMap.Internal)getMixed()).set(newValue);
return;
case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
((EStructuralFeature.Setting)getXMLNSPrefixMap()).set(newValue);
return;
case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
((EStructuralFeature.Setting)getXSISchemaLocation()).set(newValue);
return;
case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__BASE:
setBase((String)newValue);
return;
case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__ID:
setId((String)newValue);
return;
case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__LANG:
setLang((String)newValue);
return;
case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__SPACE:
setSpace((SpaceType)newValue);
return;
}
eDynamicSet(featureID, newValue);
}
开发者ID:LangleyStudios,项目名称:eclipse-avro,代码行数:35,代码来源:XMLNamespaceDocumentRootImpl.java
注:本文中的org.eclipse.emf.ecore.xml.namespace.XMLNamespacePackage类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论