|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.dlese.dpc.xml.schema.GenericType
public class GenericType
Wrapper for GenericType definitions (Element
).
Field Summary | |
---|---|
protected Element |
element
NOT YET DOCUMENTED |
protected boolean |
inline
NOT YET DOCUMENTED |
protected String |
location
NOT YET DOCUMENTED |
protected String |
name
NOT YET DOCUMENTED |
protected Namespace |
namespace
NOT YET DOCUMENTED |
protected String |
path
NOT YET DOCUMENTED |
protected SchemaReader |
schemaReader
NOT YET DOCUMENTED |
protected String |
type
NOT YET DOCUMENTED |
protected String |
xsdPrefix
NOT YET DOCUMENTED |
Fields inherited from interface org.dlese.dpc.xml.schema.GlobalDef |
---|
ATTRIBUTE_GROUP, BUILT_IN_TYPE, COMPLEX_TYPE, GENERIC_TYPE, GLOBAL_ATTRIBUTE, GLOBAL_DECLARATION, GLOBAL_ELEMENT, MODEL_GROUP, SIMPLE_TYPE |
Constructor Summary | |
---|---|
GenericType(Element element,
String location,
Namespace namespace,
SchemaReader schemaReader)
Constructor - accounting for location and schemaReader. |
|
GenericType(String name)
Constructor for the GenericType object |
|
GenericType(String name,
Namespace namespace)
Constructor for the GenericType object |
Method Summary | |
---|---|
void |
extractDocumentation()
Find documentation within this type definition. |
void |
filterChildren(String qualifiedElementName)
Removes all elements of type elementName |
void |
filterChildren(String qualifiedElementName,
Element parent)
NOT YET DOCUMENTED |
List |
getChildren()
Returns (filtered) list of child elements |
int |
getDataType()
Gets the dataType attribute of the GenericType object |
String |
getDocumentation()
Gets the documentation attribute of the GenericType object |
Element |
getElement()
Gets the element attribute of the GenericType object |
String |
getElementAsXml()
Gets the elementAsXml attribute of the GenericType object |
List |
getEnumerationValues()
Gets the enumerationValues attribute of the GenericType object |
List |
getEnumerationValues(boolean getLeafValues)
Gets the enumerationValues attribute of the GenericType object |
Element |
getFirstChild()
Gets the firstChild attribute of the GenericType object |
String |
getLocation()
Gets the location attribute of the GenericType object |
String |
getName()
Gets the name attribute of the GenericType object |
Namespace |
getNamespace()
Gets the namespace attribute of the GenericType object |
String |
getQualifiedInstanceName()
Gets a qualified name using the prefix for namespace as defined at the INSTANCE level. |
String |
getQualifiedName()
Gets the qualifiedName attribute of the GenericType object |
SchemaReader |
getSchemaReader()
Gets the schemaReader attribute of the GenericType object |
String |
getType()
Gets the type attribute of the GenericType object |
String |
getXsdPrefix()
The xsdPrefix is the prefix (e.g., "xsd") used to refer to the Schema Datatype namespace (htp:/www.w3.org/2001/XMLSchema. |
boolean |
isAnyType()
|
boolean |
isAttributeGroup()
Gets the attributeGroup attribute of the GenericType object |
boolean |
isBuiltIn()
Gets the builtIn attribute of the GenericType object |
boolean |
isComplexType()
Gets the complexType attribute of the GenericType object |
boolean |
isEnumerationType()
Gets the enumerationType attribute of the GenericType object |
boolean |
isGlobalAttribute()
Gets the globalAttribute attribute of the GenericType object |
boolean |
isGlobalDeclaration()
Gets the globalDeclaration attribute of the GenericType object |
boolean |
isGlobalElement()
Gets the globalElement attribute of the GenericType object |
boolean |
isInline()
Is this definition explicitly named or is in an "inline" definition (i.e., not explicitly named). |
boolean |
isModelGroup()
Gets the modelGroup attribute of the GenericType object |
boolean |
isSimpleType()
Gets the simpleType attribute of the GenericType object |
boolean |
isTypeDef()
All instances of GenericType are type definitions. |
void |
printElements()
NOT YET DOCUMENTED |
protected static void |
prtln(String s)
NOT YET DOCUMENTED |
void |
setInline(boolean bool)
Sets the inline attribute of the GenericType object |
String |
toString()
NOT YET DOCUMENTED |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected String name
protected String location
protected Element element
protected String path
protected String type
protected Namespace namespace
protected String xsdPrefix
protected SchemaReader schemaReader
protected boolean inline
Constructor Detail |
---|
public GenericType(String name)
name
- NOT YET DOCUMENTEDpublic GenericType(String name, Namespace namespace)
name
- NOT YET DOCUMENTEDnamespace
- NOT YET DOCUMENTEDpublic GenericType(Element element, String location, Namespace namespace, SchemaReader schemaReader)
element
- NOT YET DOCUMENTEDlocation
- NOT YET DOCUMENTEDnamespace
- NOT YET DOCUMENTEDschemaReader
- NOT YET DOCUMENTEDMethod Detail |
---|
public void extractDocumentation()
public boolean isTypeDef()
isTypeDef
in interface GlobalDef
public boolean isInline()
public void setInline(boolean bool)
bool
- The new inline valuepublic boolean isSimpleType()
isSimpleType
in interface GlobalDef
public boolean isComplexType()
isComplexType
in interface GlobalDef
public String getXsdPrefix()
public SchemaReader getSchemaReader()
getSchemaReader
in interface GlobalDef
public boolean isGlobalDeclaration()
isGlobalDeclaration
in interface GlobalDef
public boolean isGlobalElement()
isGlobalElement
in interface GlobalDef
public boolean isGlobalAttribute()
isGlobalAttribute
in interface GlobalDef
public boolean isAttributeGroup()
isAttributeGroup
in interface GlobalDef
public boolean isBuiltIn()
isBuiltIn
in interface GlobalDef
public boolean isAnyType()
isAnyType
in interface GlobalDef
public boolean isModelGroup()
isModelGroup
in interface GlobalDef
public int getDataType()
getDataType
in interface GlobalDef
public String getType()
getType
in interface GlobalDef
public String getName()
getName
in interface GlobalDef
public String getQualifiedName()
getQualifiedName
in interface GlobalDef
public String getQualifiedInstanceName()
NOTE: in some cases namespaces occurring in included schemas may not be defined at the instance level!
getQualifiedInstanceName
in interface GlobalDef
public Namespace getNamespace()
getNamespace
in interface GlobalDef
public String getLocation()
getLocation
in interface GlobalDef
public Element getElement()
getElement
in interface GlobalDef
public String getElementAsXml()
getElementAsXml
in interface GlobalDef
public String toString()
toString
in interface GlobalDef
toString
in class Object
public void filterChildren(String qualifiedElementName)
qualifiedElementName
- NOT YET DOCUMENTEDpublic void filterChildren(String qualifiedElementName, Element parent)
qualifiedElementName
- NOT YET DOCUMENTEDparent
- NOT YET DOCUMENTEDpublic Element getFirstChild()
public List getChildren()
public String getDocumentation()
getDocumentation
in interface GlobalDef
public boolean isEnumerationType()
public List getEnumerationValues()
public List getEnumerationValues(boolean getLeafValues)
getLeafValues
- NOT YET DOCUMENTED
public void printElements()
protected static void prtln(String s)
s
- NOT YET DOCUMENTED
|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |