com.bea.schema.type
Class SOMUnresolvedType
java.lang.Object
|
+--com.bea.schema.SOMObject
|
+--com.bea.schema.type.SOMType
|
+--com.bea.schema.type.SOMUnresolvedType
- public class SOMUnresolvedType
- extends SOMType
Place holder for complex and simpleTypes not yet defined.
When building a schema, the type reference for a complexType or
a simpleType may not be available at the time the construction
of the element or attribute is done. SOMUnresolvedType
is a place holder for those cases. SOMUnresolvedType maintains
a static list of all SOMUnresolvedType instances and should only be
used on one SOMSchema at a time. Once the schema is constructed,
calling the static resolve method of SOMUnresolvedType will walk
all the unresolved type instances and attempt to resolve them within
the schema.
- Author:
- Copyright © 2000, 2001 BEA Systems, Inc. All Rights Reserved.
- See Also:
- Serialized Form
Fields inherited from class com.bea.schema.type.SOMType |
ANYURI,
BASE64BINARY,
BINARY,
BOOLEAN,
BYTE,
CDATA,
CENTURY,
DATE,
DATETIME,
DECIMAL,
DOUBLE,
DURATION,
ENTITIES,
ENTITY,
FLOAT,
GDAY,
GMONTH,
GMONTHDAY,
GYEAR,
GYEARMONTH,
HEXBINARY,
ID,
IDREF,
IDREFS,
INT,
INTEGER,
LANGUAGE,
LONG,
MONTH,
NAME,
NCNAME,
NEGATIVEINTEGER,
NMTOKEN,
NMTOKENS,
NONNEGATIVEINTEGER,
NONPOSITIVEINTEGER,
NORMALIZEDSTRING,
NOTATION,
NUMBER,
POSITIVEINTEGER,
QNAME,
RECURRINGDATE,
RECURRINGDAY,
RECURRINGDURATION,
SHORT,
STRING,
TIME,
TIMEDURATION,
TIMEINSTANT,
TIMEPERIOD,
TOKEN,
UNSIGNEDBYTE,
UNSIGNEDINT,
UNSIGNEDLONG,
UNSIGNEDSHORT,
URIREFERENCE,
YEAR |
Constructor Summary
|
SOMUnresolvedType(SOMObject parent,
java.lang.String name)
Creating a SOMUnresolvedType registers this instance in the static
table of unresolved types. |
Method Summary
|
java.lang.String |
getID()
Returns a printable element tag for this Schema Object |
java.lang.String |
getName()
|
static java.util.Vector |
getUnresolvedTypes()
|
SOMType |
resolve(boolean debugMsgs)
replace reference to this unresolved type with a defined type. |
static void |
resolveAll(boolean debugMsgs)
calls resolve method for each instance in the static UnresolvedType
table. |
void |
toXML(java.io.Writer rtn,
int indent)
Outputs a formatted XML representation of SOMObject. |
Methods inherited from class com.bea.schema.SOMObject |
addChild,
attributesToXML,
doIndent,
getID_UQ,
getParent,
getParentSchema,
isCircularReference,
isSchemaChild,
setIndent,
setParent,
toString,
toXML,
toXML,
toXML,
trace,
trace |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
SOMUnresolvedType
public SOMUnresolvedType(SOMObject parent,
java.lang.String name)
- Creating a SOMUnresolvedType registers this instance in the static
table of unresolved types. The parent and name must be non-null references.
- Parameters:
parent
- name
-
getUnresolvedTypes
public static java.util.Vector getUnresolvedTypes()
resolveAll
public static void resolveAll(boolean debugMsgs)
- calls resolve method for each instance in the static UnresolvedType
table. If the type can be resolved, the instance of SOMUnresolvedType
is removed from the static table of unresolved types.
resolve
public SOMType resolve(boolean debugMsgs)
- replace reference to this unresolved type with a defined type.
The resolve method uses the lookupTypeReference of SOMSchema
attempt to resolve the name of this unresolved type with a defined
type.
- Returns:
- the type that replaced this unresolved type or null if none
could be found
getID
public java.lang.String getID()
- Returns a printable element tag for this Schema Object
- Returns:
- String representation of the element tag
- Overrides:
- getID in class SOMObject
getName
public java.lang.String getName()
toXML
public void toXML(java.io.Writer rtn,
int indent)
throws java.io.IOException
- Outputs a formatted XML representation of SOMObject.
- Parameters:
indent
- the indent level for formatting at which to start this schema object.- Returns:
- formatted XML stream
- Overrides:
- toXML in class SOMObject
WebLogic Integration (WLI)