public class JBossXSTypeDefinition extends JBossXSObject implements org.apache.xerces.xs.XSTypeDefinition
Modifier and Type | Field and Description |
---|---|
protected boolean |
anonymous |
protected JBossXSTypeDefinition |
baseType |
protected boolean |
isFinal |
name, namespace
Constructor and Description |
---|
JBossXSTypeDefinition() |
JBossXSTypeDefinition(String name,
String namespace) |
JBossXSTypeDefinition(org.apache.xerces.xs.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(org.apache.xerces.xs.XSTypeDefinition ancestorType,
short derivationMethod)
Convenience method which checks if this type is derived from the given
ancestorType . |
boolean |
getAnonymous()
Convenience attribute.
|
org.apache.xerces.xs.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(org.apache.xerces.xs.XSTypeDefinition baseT) |
void |
setFinal(boolean aFinal) |
equals, getName, getNamespace, getNamespaceItem, getType, hashCode, setName, setNamespace, setNamespaceItem, setType
protected boolean anonymous
protected JBossXSTypeDefinition baseType
protected boolean isFinal
public JBossXSTypeDefinition()
public JBossXSTypeDefinition(org.apache.xerces.xs.XSTypeDefinition xt)
xt
- public short getTypeCategory()
getTypeCategory
in interface org.apache.xerces.xs.XSTypeDefinition
public org.apache.xerces.xs.XSTypeDefinition getBaseType()
getBaseType
in interface org.apache.xerces.xs.XSTypeDefinition
public boolean isFinal(short restriction)
isFinal
in interface org.apache.xerces.xs.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 org.apache.xerces.xs.XSTypeDefinition
public boolean getAnonymous()
getAnonymous
in interface org.apache.xerces.xs.XSTypeDefinition
public void setAnonymous(boolean anonymous)
public boolean derivedFromType(org.apache.xerces.xs.XSTypeDefinition ancestorType, short derivationMethod)
ancestorType
.derivedFromType
in interface org.apache.xerces.xs.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 org.apache.xerces.xs.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(org.apache.xerces.xs.XSTypeDefinition baseT)
public void setFinal(boolean aFinal)
Copyright © 2012 JBoss, by Red Hat. All Rights Reserved.