public class JBossXSComplexTypeDefinition extends JBossXSTypeDefinition implements org.apache.xerces.xs.XSComplexTypeDefinition
anonymous, baseType, isFinal
name, namespace
Constructor and Description |
---|
JBossXSComplexTypeDefinition() |
JBossXSComplexTypeDefinition(String name,
String namespace) |
JBossXSComplexTypeDefinition(org.apache.xerces.xs.XSComplexTypeDefinition xc) |
Modifier and Type | Method and Description |
---|---|
void |
addXSAttributeUse(org.apache.xerces.xs.XSAttributeUse at) |
boolean |
getAbstract()
[abstract]: a boolean.
|
org.apache.xerces.xs.XSObjectList |
getAnnotations()
A set of [annotations] if it exists, otherwise an empty
XSObjectList . |
org.apache.xerces.xs.XSObjectList |
getAttributeUses()
A set of attribute uses if it exists, otherwise an empty
XSObjectList . |
org.apache.xerces.xs.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 ). |
org.apache.xerces.xs.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 ). |
org.apache.xerces.xs.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(org.apache.xerces.xs.XSObjectList annots)
A set of [annotations] if it exists, otherwise an empty
XSObjectList . |
void |
setContentType(short contentType) |
void |
setDerivationMethod(short deriveMethod) |
void |
setParticle(org.apache.xerces.xs.XSParticle xspart)
A particle for a mixed or element-only content model, otherwise
null . |
void |
setSimpleType(org.apache.xerces.xs.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
public JBossXSComplexTypeDefinition()
public JBossXSComplexTypeDefinition(org.apache.xerces.xs.XSComplexTypeDefinition xc)
public short getDerivationMethod()
DERIVATION_EXTENSION
,
DERIVATION_RESTRICTION
, or DERIVATION_NONE
(see XSConstants
).getDerivationMethod
in interface org.apache.xerces.xs.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 org.apache.xerces.xs.XSComplexTypeDefinition
public org.apache.xerces.xs.XSObjectList getAttributeUses()
XSObjectList
.getAttributeUses
in interface org.apache.xerces.xs.XSComplexTypeDefinition
public org.apache.xerces.xs.XSWildcard getAttributeWildcard()
null
.getAttributeWildcard
in interface org.apache.xerces.xs.XSComplexTypeDefinition
public short getContentType()
CONTENTTYPE_EMPTY
), a simple
type definition (CONTENTTYPE_SIMPLE
), mixed (
CONTENTTYPE_MIXED
), or element-only (
CONTENTTYPE_ELEMENT
).getContentType
in interface org.apache.xerces.xs.XSComplexTypeDefinition
public org.apache.xerces.xs.XSSimpleTypeDefinition getSimpleType()
null
.getSimpleType
in interface org.apache.xerces.xs.XSComplexTypeDefinition
public org.apache.xerces.xs.XSParticle getParticle()
null
.getParticle
in interface org.apache.xerces.xs.XSComplexTypeDefinition
public boolean isProhibitedSubstitution(short restriction)
isProhibitedSubstitution
in interface org.apache.xerces.xs.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 org.apache.xerces.xs.XSComplexTypeDefinition
public org.apache.xerces.xs.XSObjectList getAnnotations()
XSObjectList
.getAnnotations
in interface org.apache.xerces.xs.XSComplexTypeDefinition
public short getType()
getType
in interface org.apache.xerces.xs.XSObject
getType
in class JBossXSObject
public short getTypeCategory()
getTypeCategory
in interface org.apache.xerces.xs.XSTypeDefinition
getTypeCategory
in class JBossXSTypeDefinition
public void setAbstract(boolean anAbstract)
public void setDerivationMethod(short deriveMethod)
public void setSimpleType(org.apache.xerces.xs.XSSimpleTypeDefinition xsSimple)
null
.public void setParticle(org.apache.xerces.xs.XSParticle xspart)
null
.public void setAnnotations(org.apache.xerces.xs.XSObjectList annots)
XSObjectList
.public void setContentType(short contentType)
contentType
- XSComplexTypeDefinition.CONTENTTYPE_EMPTY
,
XSComplexTypeDefinition.CONTENTTYPE_SIMPLE
,
XSComplexTypeDefinition.CONTENTTYPE_MIXED
,
XSComplexTypeDefinition.CONTENTTYPE_ELEMENT
public void addXSAttributeUse(org.apache.xerces.xs.XSAttributeUse at)
Copyright © 2012 JBoss, by Red Hat. All Rights Reserved.