org.eclipse.xsd.XSDWildcard Maven / Gradle / Ivy
/**
* Copyright (c) 2002-2006 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v20.html
*
* Contributors:
* IBM - Initial API and implementation
*/
package org.eclipse.xsd;
import org.eclipse.emf.common.util.EList;
/**
*
* A representation of the model object
* 'Wildcards'.
*
*
*
* The following features are supported:
*
*
* - {@link org.eclipse.xsd.XSDWildcard#getNamespaceConstraintCategory Namespace Constraint Category}
* - {@link org.eclipse.xsd.XSDWildcard#getNamespaceConstraint Namespace Constraint}
* - {@link org.eclipse.xsd.XSDWildcard#getProcessContents Process Contents}
* - {@link org.eclipse.xsd.XSDWildcard#getLexicalNamespaceConstraint Lexical Namespace Constraint}
* - {@link org.eclipse.xsd.XSDWildcard#getAnnotation Annotation}
* - {@link org.eclipse.xsd.XSDWildcard#getAnnotations Annotations}
*
*
* @see org.eclipse.xsd.XSDPackage#getXSDWildcard()
* @model
* @generated
*/
public interface XSDWildcard extends XSDTerm
{
/**
* Returns the value of the 'Namespace Constraint Category' attribute.
* The literals are from the enumeration {@link org.eclipse.xsd.XSDNamespaceConstraintCategory}.
*
*
* This represents the category of the
* namespace constraint
* infoset property.
*
*
* @return the value of the 'Namespace Constraint Category' attribute.
* @see org.eclipse.xsd.XSDNamespaceConstraintCategory
* @see #setNamespaceConstraintCategory(XSDNamespaceConstraintCategory)
* @see org.eclipse.xsd.XSDPackage#getXSDWildcard_NamespaceConstraintCategory()
* @model
* @generated
*/
XSDNamespaceConstraintCategory getNamespaceConstraintCategory();
/**
* Sets the value of the '{@link org.eclipse.xsd.XSDWildcard#getNamespaceConstraintCategory Namespace Constraint Category}' attribute.
*
*
* @param value the new value of the 'Namespace Constraint Category' attribute.
* @see org.eclipse.xsd.XSDNamespaceConstraintCategory
* @see #getNamespaceConstraintCategory()
* @generated
*/
void setNamespaceConstraintCategory(XSDNamespaceConstraintCategory value);
/**
* Returns the value of the 'Namespace Constraint' attribute list.
* The list contents are of type {@link java.lang.String}.
*
*
* This represents the value of the
* namespace constraint
* infoset property.
* It is computed from the {@link #getLexicalNamespaceConstraint() lexical namespace constraint}
* and should typically not be modified directly.
*
* @see #getStringNamespaceConstraint()
* @
* @return the value of the 'Namespace Constraint' attribute list.
* @see org.eclipse.xsd.XSDPackage#getXSDWildcard_NamespaceConstraint()
* @model
* @generated
*/
EList getNamespaceConstraint();
/**
* Returns the String value of the '{@link org.eclipse.xsd.XSDWildcard#getNamespaceConstraint Namespace Constraint}' attribute list.
*
*
* @return the String value of the 'Namespace Constraint' attribute list.
* @see #getNamespaceConstraint()
*/
public String getStringNamespaceConstraint();
/**
* Returns the value of the 'Process Contents' attribute.
* The literals are from the enumeration {@link org.eclipse.xsd.XSDProcessContents}.
*
*
* This represents the
* process contents
* infoset property.
*
*
* @return the value of the 'Process Contents' attribute.
* @see org.eclipse.xsd.XSDProcessContents
* @see #isSetProcessContents()
* @see #unsetProcessContents()
* @see #setProcessContents(XSDProcessContents)
* @see org.eclipse.xsd.XSDPackage#getXSDWildcard_ProcessContents()
* @model unsettable="true"
* @generated
*/
XSDProcessContents getProcessContents();
/**
* Sets the value of the '{@link org.eclipse.xsd.XSDWildcard#getProcessContents Process Contents}' attribute.
*
*
* @param value the new value of the 'Process Contents' attribute.
* @see org.eclipse.xsd.XSDProcessContents
* @see #isSetProcessContents()
* @see #unsetProcessContents()
* @see #getProcessContents()
* @generated
*/
void setProcessContents(XSDProcessContents value);
/**
* Unsets the value of the '{@link org.eclipse.xsd.XSDWildcard#getProcessContents Process Contents}' attribute.
*
*
* @see #isSetProcessContents()
* @see #getProcessContents()
* @see #setProcessContents(XSDProcessContents)
* @generated
*/
void unsetProcessContents();
/**
* Returns whether the value of the '{@link org.eclipse.xsd.XSDWildcard#getProcessContents Process Contents}' attribute is set.
*
*
* @return whether the value of the 'Process Contents' attribute is set.
* @see #unsetProcessContents()
* @see #getProcessContents()
* @see #setProcessContents(XSDProcessContents)
* @generated
*/
boolean isSetProcessContents();
/**
* Returns the value of the 'Lexical Namespace Constraint' attribute list.
* The list contents are of type {@link java.lang.String}.
*
*
* This concrete attribute represents the value of the
* any namespace or
* anyAttribute namespace attribute.
*
*
* @return the value of the 'Lexical Namespace Constraint' attribute list.
* @see #isSetLexicalNamespaceConstraint()
* @see #unsetLexicalNamespaceConstraint()
* @see org.eclipse.xsd.XSDPackage#getXSDWildcard_LexicalNamespaceConstraint()
* @model unsettable="true"
* @generated
*/
EList getLexicalNamespaceConstraint();
/**
* Unsets the value of the '{@link org.eclipse.xsd.XSDWildcard#getLexicalNamespaceConstraint Lexical Namespace Constraint}' attribute list.
*
*
* @see #isSetLexicalNamespaceConstraint()
* @see #getLexicalNamespaceConstraint()
* @generated
*/
void unsetLexicalNamespaceConstraint();
/**
* Returns whether the value of the '{@link org.eclipse.xsd.XSDWildcard#getLexicalNamespaceConstraint Lexical Namespace Constraint}' attribute list is set.
*
*
* @return whether the value of the 'Lexical Namespace Constraint' attribute list is set.
* @see #unsetLexicalNamespaceConstraint()
* @see #getLexicalNamespaceConstraint()
* @generated
*/
boolean isSetLexicalNamespaceConstraint();
/**
* Returns the String value of the '{@link org.eclipse.xsd.XSDWildcard#getLexicalNamespaceConstraint Lexical Namespace Constraint}' attribute list.
*
*
* @return the String value of the 'Lexical Namespace Constraint' attribute list.
* @see #getLexicalNamespaceConstraint()
* @see #setStringLexicalNamespaceConstraint(java.lang.String)
*/
public String getStringLexicalNamespaceConstraint();
/**
* Sets the String value of the '{@link org.eclipse.xsd.XSDWildcard#getLexicalNamespaceConstraint Lexical Namespace Constraint}' attribute.
*
*
* @param lexicalNamespaceConstraint the new value of the 'Lexical Namespace Constraint' attribute.
* @see #getLexicalNamespaceConstraint()
* @see #getStringLexicalNamespaceConstraint()
*/
public void setStringLexicalNamespaceConstraint(String lexicalNamespaceConstraint);
/**
* Returns the value of the 'Annotation' containment reference.
*
*
* This concrete reference represents the annotation content of an
* any or
* anyAttribute element.
*
*
* @return the value of the 'Annotation' containment reference.
* @see #setAnnotation(XSDAnnotation)
* @see org.eclipse.xsd.XSDPackage#getXSDWildcard_Annotation()
* @model containment="true"
* @generated
*/
XSDAnnotation getAnnotation();
/**
* Sets the value of the '{@link org.eclipse.xsd.XSDWildcard#getAnnotation Annotation}' containment reference.
*
*
* @param value the new value of the 'Annotation' containment reference.
* @see #getAnnotation()
* @generated
*/
void setAnnotation(XSDAnnotation value);
/**
* Returns the value of the 'Annotations' reference list.
* The list contents are of type {@link org.eclipse.xsd.XSDAnnotation}.
*
*
* This represents the
* annotation
* infoset property.
* It is computed from the {@link #getAnnotation annotation} and should typically not modified directly.
*
*
* @return the value of the 'Annotations' reference list.
* @see org.eclipse.xsd.XSDPackage#getXSDWildcard_Annotations()
* @model resolveProxies="false"
* @generated
*/
EList getAnnotations();
/**
* Returns whether this wildcard is a subset of the given wildcard.
* @param superSetWildcard the other wildcard.
* @return whether this wildcard is a subset.
* @see #attributeWildcardUnion
* @see #attributeWildcardIntersection
*/
boolean isWildcardSubset(XSDWildcard superSetWildcard);
/**
* Returns a wildcard that is the
* attribute wildcard union
* of this wildcard and the given wildcard.
* @param otherWildcard another wildcard.
* @return a wildcard that is the attribute wildcard union of this wildcard and the given wildcard.
* @see #isWildcardSubset
* @see #attributeWildcardIntersection
*/
XSDWildcard attributeWildcardUnion(XSDWildcard otherWildcard);
/**
* Returns a wildcard that is the
* attribute wildcard interection
* of this wildcard and the given wildcard.
* @param otherWildcard another wildcard.
* @return a wildcard that is the attribute wildcard interection of this wildcard and the given wildcard.
* @see #isWildcardSubset
* @see #attributeWildcardUnion
*/
XSDWildcard attributeWildcardIntersection(XSDWildcard otherWildcard);
/**
* Returns whether the namespace is
* allowed
* by the wildcard.
* @return whether the namespace is allowed by the wildcard.
*/
boolean allows(String namespace);
}