/** * 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; }
/** * 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; }
/** * 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 XMLTypePackage#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 XMLTypePackage init() { if (isInited) return (XMLTypePackage)EPackage.Registry.INSTANCE.getEPackage(XMLTypePackage.eNS_URI); // Obtain or create and register package XMLTypePackageImpl theXMLTypePackage = (XMLTypePackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof XMLTypePackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new XMLTypePackageImpl()); isInited = true; // Create package meta-data objects theXMLTypePackage.createPackageContents(); // Initialize created meta-data theXMLTypePackage.initializePackageContents(); // Register package validator EValidator.Registry.INSTANCE.put (theXMLTypePackage, new EValidator.Descriptor() { public EValidator getEValidator() { return XMLTypeValidator.INSTANCE; } }); // Mark meta-data to indicate it can't be changed theXMLTypePackage.freeze(); // Update the registry and return the package EPackage.Registry.INSTANCE.put(XMLTypePackage.eNS_URI, theXMLTypePackage); return theXMLTypePackage; }
/** * Creates an instance of the switch. * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ public MqModuleValidator() { super(); xmlTypeValidator = XMLTypeValidator.INSTANCE; }
/** * Creates an instance of the switch. * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ public TypesValidator() { super(); xmlTypeValidator = XMLTypeValidator.INSTANCE; }
/** * Creates an instance of the switch. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public ConfigurationValidator () { super (); xmlTypeValidator = XMLTypeValidator.INSTANCE; }
/** * Creates an instance of the switch. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public ToscaValidator() { super(); xmlTypeValidator = XMLTypeValidator.INSTANCE; }
/** * Creates an instance of the switch. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EsmConfigValidator() { super(); xmlTypeValidator = XMLTypeValidator.INSTANCE; }
/** * Creates an instance of the switch. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public NupnValidator() { super(); xmlTypeValidator = XMLTypeValidator.INSTANCE; }
/** * Creates an instance of the switch. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public DbchangelogValidator() { super(); xmlTypeValidator = XMLTypeValidator.INSTANCE; }
/** * Creates an instance of the switch. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public PartnerValidator() { super(); xmlTypeValidator = XMLTypeValidator.INSTANCE; }
/** * Creates an instance of the switch. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public graValidator() { super(); xmlTypeValidator = XMLTypeValidator.INSTANCE; }
/** * Creates an instance of the switch. * <!-- begin-user-doc --> <!-- * end-user-doc --> * @generated */ public AttributeValidator( ) { super( ); xmlTypeValidator = XMLTypeValidator.INSTANCE; }
/** * Creates an instance of the switch. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public ModelValidator( ) { super( ); xmlTypeValidator = XMLTypeValidator.INSTANCE; }
/** * Creates an instance of the switch. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public LayoutValidator( ) { super( ); xmlTypeValidator = XMLTypeValidator.INSTANCE; }
/** * Creates an instance of the switch. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public XMLNamespaceValidator() { super(); xmlTypeValidator = XMLTypeValidator.INSTANCE; }
/** * Creates an instance of the switch. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EcoreValidator() { super(); xmlTypeValidator = XMLTypeValidator.INSTANCE; }
/** * Creates an instance of the switch. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public Smil20Validator() { super(); xmlTypeValidator = XMLTypeValidator.INSTANCE; }
/** * Creates an instance of the switch. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public CitygmlValidator() { super(); xmlTypeValidator = XMLTypeValidator.INSTANCE; gmlValidator = GmlValidator.INSTANCE; }
/** * Creates an instance of the switch. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public GmlValidator() { super(); xmlTypeValidator = XMLTypeValidator.INSTANCE; }
/** * Creates an instance of the switch. <!-- begin-user-doc --> <!-- end-user-doc --> * * @generated */ public CatValidator() { super(); xmlTypeValidator = XMLTypeValidator.INSTANCE; }