public class JBossXSComplexTypeDefinition extends JBossXSTypeDefinition implements XSComplexTypeDefinition
anonymous, baseType, isFinal
name, namespace
CONTENTTYPE_ELEMENT, CONTENTTYPE_EMPTY, CONTENTTYPE_MIXED, CONTENTTYPE_SIMPLE
COMPLEX_TYPE, SIMPLE_TYPE
Constructor and Description |
---|
JBossXSComplexTypeDefinition() |
JBossXSComplexTypeDefinition(String name,
String namespace) |
JBossXSComplexTypeDefinition(XSComplexTypeDefinition xc) |
Modifier and Type | Method and Description |
---|---|
void |
addXSAttributeUse(XSAttributeUse at) |
boolean |
getAbstract()
[abstract]: a boolean.
|
XSObjectList |
getAnnotations()
A set of [annotations] if it exists, otherwise an empty
XSObjectList . |
XSObjectList |
getAttributeUses()
A set of attribute uses if it exists, otherwise an empty
XSObjectList . |
XSWildcard |
getAttributeWildcard()
An attribute wildcard if it exists, otherwise
null . |
short |
getContentType()
[content type]: one of empty (
CONTENTTYPE_EMPTY ), a simple
type definition (CONTENTTYPE_SIMPLE ), mixed (
CONTENTTYPE_MIXED ), or element-only (
CONTENTTYPE_ELEMENT ). |
short |
getDerivationMethod()
[derivation method]: either
DERIVATION_EXTENSION ,
DERIVATION_RESTRICTION , or DERIVATION_NONE
(see XSConstants ). |
XSParticle |
getParticle()
A particle for a mixed or element-only content model, otherwise
null . |
short |
getProhibitedSubstitutions()
[prohibited substitutions]: A subset of {extension, restriction} or
DERIVATION_NONE represented as a bit flag (see
XSConstants ). |
XSSimpleTypeDefinition |
getSimpleType()
A simple type definition corresponding to a simple content model,
otherwise
null . |
short |
getType()
Get the type
|
short |
getTypeCategory()
Return whether this type definition is a simple type or complex type.
|
boolean |
isProhibitedSubstitution(short restriction)
[prohibited substitutions]: a subset of {extension, restriction}
|
void |
setAbstract(boolean anAbstract) |
void |
setAnnotations(XSObjectList annots)
A set of [annotations] if it exists, otherwise an empty
XSObjectList . |
void |
setContentType(short contentType) |
void |
setDerivationMethod(short deriveMethod) |
void |
setParticle(XSParticle xspart)
A particle for a mixed or element-only content model, otherwise
null . |
void |
setSimpleType(XSSimpleTypeDefinition xsSimple)
A simple type definition corresponding to a simple content model,
otherwise
null . |
String |
toString() |
derivedFrom, derivedFromType, getAnonymous, getBaseType, getFinal, isFinal, setAnonymous, setBaseType, setFinal
equals, getName, getNamespace, getNamespaceItem, hashCode, setName, setNamespace, setNamespaceItem, setType
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
derivedFrom, derivedFromType, getAnonymous, getBaseType, getFinal, isFinal
getName, getNamespace, getNamespaceItem
public JBossXSComplexTypeDefinition()
public JBossXSComplexTypeDefinition(XSComplexTypeDefinition xc)
public short getDerivationMethod()
DERIVATION_EXTENSION
,
DERIVATION_RESTRICTION
, or DERIVATION_NONE
(see XSConstants
).getDerivationMethod
in interface XSComplexTypeDefinition
public boolean getAbstract()
abstract
is
true must not be used as the type definition for the validation of
element information items.getAbstract
in interface XSComplexTypeDefinition
public XSObjectList getAttributeUses()
XSObjectList
.getAttributeUses
in interface XSComplexTypeDefinition
public XSWildcard getAttributeWildcard()
null
.getAttributeWildcard
in interface XSComplexTypeDefinition
public short getContentType()
CONTENTTYPE_EMPTY
), a simple
type definition (CONTENTTYPE_SIMPLE
), mixed (
CONTENTTYPE_MIXED
), or element-only (
CONTENTTYPE_ELEMENT
).getContentType
in interface XSComplexTypeDefinition
public XSSimpleTypeDefinition getSimpleType()
null
.getSimpleType
in interface XSComplexTypeDefinition
public XSParticle getParticle()
null
.getParticle
in interface XSComplexTypeDefinition
public boolean isProhibitedSubstitution(short restriction)
isProhibitedSubstitution
in interface XSComplexTypeDefinition
restriction
- Extension or restriction constants (see
XSConstants
).restriction
is a prohibited substitution,
otherwise false.public short getProhibitedSubstitutions()
DERIVATION_NONE
represented as a bit flag (see
XSConstants
).getProhibitedSubstitutions
in interface XSComplexTypeDefinition
public XSObjectList getAnnotations()
XSObjectList
.getAnnotations
in interface XSComplexTypeDefinition
public short getType()
getType
in interface XSObject
getType
in class JBossXSObject
public short getTypeCategory()
getTypeCategory
in interface XSTypeDefinition
getTypeCategory
in class JBossXSTypeDefinition
public void setAbstract(boolean anAbstract)
public void setDerivationMethod(short deriveMethod)
public void setSimpleType(XSSimpleTypeDefinition xsSimple)
null
.public void setParticle(XSParticle xspart)
null
.public void setAnnotations(XSObjectList annots)
XSObjectList
.public void setContentType(short contentType)
contentType
- XSComplexTypeDefinition.CONTENTTYPE_EMPTY
,
XSComplexTypeDefinition.CONTENTTYPE_SIMPLE
,
XSComplexTypeDefinition.CONTENTTYPE_MIXED
,
XSComplexTypeDefinition.CONTENTTYPE_ELEMENT
public void addXSAttributeUse(XSAttributeUse at)
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.