public class JBossXSTypeDefinition extends JBossXSObject implements XSTypeDefinition
Modifier and Type | Field and Description |
---|---|
protected boolean |
anonymous |
protected JBossXSTypeDefinition |
baseType |
protected boolean |
isFinal |
name, namespace
COMPLEX_TYPE, SIMPLE_TYPE
Constructor and Description |
---|
JBossXSTypeDefinition() |
JBossXSTypeDefinition(String name,
String namespace) |
JBossXSTypeDefinition(XSTypeDefinition xt)
Create a new JBossXSTypeDefinition
while reading data from a XSTypeDefinition
|
Modifier and Type | Method and Description |
---|---|
boolean |
derivedFrom(String namespace,
String name,
short derivationMethod)
Convenience method which checks if this type is derived from the given
ancestor type.
|
boolean |
derivedFromType(XSTypeDefinition ancestorType,
short derivationMethod)
Convenience method which checks if this type is derived from the given
ancestorType . |
boolean |
getAnonymous()
Convenience attribute.
|
XSTypeDefinition |
getBaseType()
{base type definition}: either a simple type definition or a complex
type definition.
|
short |
getFinal()
For complex types the returned value is a bit combination of the subset
of {
DERIVATION_EXTENSION, DERIVATION_RESTRICTION }
corresponding to final set of this type or
DERIVATION_NONE . |
short |
getTypeCategory()
Return whether this type definition is a simple type or complex type.
|
boolean |
isFinal(short restriction)
{final}.
|
void |
setAnonymous(boolean anonymous) |
void |
setBaseType(XSTypeDefinition baseT) |
void |
setFinal(boolean aFinal) |
equals, getName, getNamespace, getNamespaceItem, getType, hashCode, setName, setNamespace, setNamespaceItem, setType
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getName, getNamespace, getNamespaceItem, getType
protected boolean anonymous
protected JBossXSTypeDefinition baseType
protected boolean isFinal
public JBossXSTypeDefinition()
public JBossXSTypeDefinition(XSTypeDefinition xt)
xt
- public short getTypeCategory()
getTypeCategory
in interface XSTypeDefinition
public XSTypeDefinition getBaseType()
getBaseType
in interface XSTypeDefinition
public boolean isFinal(short restriction)
isFinal
in interface XSTypeDefinition
restriction
- Extension, restriction, list, union constants
(defined in XSConstants
).restriction
is in the final set,
otherwise false.public short getFinal()
DERIVATION_EXTENSION, DERIVATION_RESTRICTION
}
corresponding to final
set of this type or
DERIVATION_NONE
. For simple types the returned value is
a bit combination of the subset of {
DERIVATION_RESTRICTION, DERIVATION_EXTENSION, DERIVATION_UNION, DERIVATION_LIST
} corresponding to final
set of this type or
DERIVATION_NONE
.getFinal
in interface XSTypeDefinition
public boolean getAnonymous()
getAnonymous
in interface XSTypeDefinition
public void setAnonymous(boolean anonymous)
public boolean derivedFromType(XSTypeDefinition ancestorType, short derivationMethod)
ancestorType
.derivedFromType
in interface XSTypeDefinition
ancestorType
- An ancestor type definition.derivationMethod
- A bit combination representing a subset of {
DERIVATION_RESTRICTION, DERIVATION_EXTENSION, DERIVATION_UNION, DERIVATION_LIST
}.ancestorType
using only derivation methods from the derivationMethod
.public boolean derivedFrom(String namespace, String name, short derivationMethod)
derivedFrom
in interface XSTypeDefinition
namespace
- An ancestor type namespace.name
- An ancestor type name.derivationMethod
- A bit combination representing a subset of {
DERIVATION_RESTRICTION, DERIVATION_EXTENSION, DERIVATION_UNION, DERIVATION_LIST
}.ancestorType
using only derivation methods from the derivationMethod
.public void setBaseType(XSTypeDefinition baseT)
public void setFinal(boolean aFinal)
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.