public abstract class TypeEntry extends SymTabEntry implements Serializable
Modifier and Type | Field and Description |
---|---|
protected QName |
componentType |
protected Vector |
containedAttributes
contained attributes in the schema's type definition
|
protected Vector |
containedElements
contained elements in the schema's type definition
|
protected String |
dims
Field dims
|
protected boolean |
isBaseType
Field isBaseType
|
protected boolean |
isSimpleType
Field isSimpleType
|
protected QName |
itemQName
If this TypeEntry represents an array with elements inside a "wrapper"
this field can optionally change the inner QName (default is
|
protected Node |
node
Field node
|
protected boolean |
onlyLiteralReference
Field onlyLiteralReference
|
protected TypeEntry |
refType
Field refType
|
protected HashSet |
types
Field types
|
protected boolean |
undefined
Field undefined
|
protected boolean |
underlTypeNillable |
name, qname
Modifier | Constructor and Description |
---|---|
protected |
TypeEntry(QName pqName)
Create a TypeEntry object for an xml construct name that represents a base type
|
protected |
TypeEntry(QName pqName,
Node pNode)
Create a TypeEntry object for an xml construct that is not a base type
|
protected |
TypeEntry(QName pqName,
TypeEntry refType,
Node pNode,
String dims)
Create a TypeEntry object for an xml construct that references another type.
|
Modifier and Type | Method and Description |
---|---|
String |
getBaseType()
Returns the Base Type Name.
|
QName |
getComponentType()
Return the QName of the component if this is an array type
|
Vector |
getContainedAttributes() |
Vector |
getContainedElements() |
String |
getDimensions()
Return the dimensions of this type, which can be 0 or more "[]".
|
QName |
getItemQName() |
HashSet |
getNestedTypes(SymbolTable symbolTable,
boolean derivedFlag)
This method returns a set of all the nested types.
|
Node |
getNode()
Query the node for this type.
|
TypeEntry |
getRefType()
If this type references another type, return that type, otherwise return null.
|
protected TypeEntry |
getUndefinedTypeRef()
getUndefinedTypeRef returns the Undefined TypeEntry that this entry depends on or NULL.
|
boolean |
getUnderlTypeNillable()
Return whether the underlying type is nillable if this is an array type.
|
boolean |
isBaseType()
Method isBaseType
|
boolean |
isOnlyLiteralReferenced()
Is this type references ONLY as a literal type?
|
boolean |
isSimpleType()
Method isSimpleType
|
void |
setBaseType(boolean baseType)
Method setBaseType
|
void |
setComponentType(QName componentType)
Set the QName of the component if this is an array type
|
void |
setContainedAttributes(Vector containedAttributes) |
void |
setContainedElements(Vector containedElements) |
void |
setItemQName(QName itemQName) |
void |
setOnlyLiteralReference(boolean set)
Set the isOnlyLiteralReference flag.
|
void |
setRefType(TypeEntry refType)
Method setRefType
|
void |
setSimpleType(boolean simpleType)
Method setSimpleType
|
void |
setUnderlTypeNillable(boolean underlTypeNillable)
Set the boolean indicating whether underlying type of array is nillable.
|
protected String |
toString(String indent)
Get string representation with indentation
|
protected boolean |
updateUndefined(TypeEntry oldRef,
TypeEntry newRef)
UpdateUndefined is called when the ref TypeEntry is finally known.
|
getDynamicVar, getName, getQName, isReferenced, setDynamicVar, setIsReferenced, setName, toString
protected Node node
protected TypeEntry refType
protected String dims
protected boolean underlTypeNillable
protected QName componentType
protected QName itemQName
protected boolean undefined
protected boolean isBaseType
protected boolean isSimpleType
protected boolean onlyLiteralReference
protected HashSet types
protected Vector containedElements
protected Vector containedAttributes
protected TypeEntry(QName pqName, TypeEntry refType, Node pNode, String dims)
pqName
- refType
- pNode
- dims
- protected TypeEntry(QName pqName, Node pNode)
pqName
- pNode
- protected TypeEntry(QName pqName)
pqName
- public Node getNode()
public String getBaseType()
public boolean isBaseType()
public void setBaseType(boolean baseType)
baseType
- public boolean isSimpleType()
public void setSimpleType(boolean simpleType)
simpleType
- public boolean isOnlyLiteralReferenced()
public void setOnlyLiteralReference(boolean set)
set
- protected TypeEntry getUndefinedTypeRef()
protected boolean updateUndefined(TypeEntry oldRef, TypeEntry newRef) throws IOException
oldRef
- The TypeEntry representing the Undefined TypeEntrynewRef
- The replacement TypeEntryIOException
public TypeEntry getRefType()
public void setRefType(TypeEntry refType)
refType
- public String getDimensions()
public boolean getUnderlTypeNillable()
public void setUnderlTypeNillable(boolean underlTypeNillable)
public QName getComponentType()
public void setComponentType(QName componentType)
public QName getItemQName()
public void setItemQName(QName itemQName)
protected String toString(String indent)
toString
in class SymTabEntry
indent
- public HashSet getNestedTypes(SymbolTable symbolTable, boolean derivedFlag)
symbolTable
- is the symbolTablederivedFlag
- should be set if all dependendent derived types should also be
returned.public Vector getContainedAttributes()
public void setContainedAttributes(Vector containedAttributes)
containedAttributes
- The containedAttributes to set.public Vector getContainedElements()
public void setContainedElements(Vector containedElements)
containedElements
- The containedElements to set.Copyright © The Apache Software Foundation. All Rights Reserved.