|
DLESE Tools v1.6.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.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 DOCUMENTED
public GenericType(String name,
Namespace namespace)
name - NOT YET DOCUMENTEDnamespace - NOT YET DOCUMENTED
public GenericType(Element element,
String location,
Namespace namespace,
SchemaReader schemaReader)
element - NOT YET DOCUMENTEDlocation - NOT YET DOCUMENTEDnamespace - NOT YET DOCUMENTEDschemaReader - NOT YET DOCUMENTED| Method Detail |
|---|
public void extractDocumentation()
public boolean isTypeDef()
isTypeDef in interface GlobalDefpublic boolean isInline()
public void setInline(boolean bool)
bool - The new inline valuepublic boolean isSimpleType()
isSimpleType in interface GlobalDefpublic boolean isComplexType()
isComplexType in interface GlobalDefpublic String getXsdPrefix()
public SchemaReader getSchemaReader()
getSchemaReader in interface GlobalDefpublic boolean isGlobalDeclaration()
isGlobalDeclaration in interface GlobalDefpublic boolean isGlobalElement()
isGlobalElement in interface GlobalDefpublic boolean isGlobalAttribute()
isGlobalAttribute in interface GlobalDefpublic boolean isAttributeGroup()
isAttributeGroup in interface GlobalDefpublic boolean isBuiltIn()
isBuiltIn in interface GlobalDefpublic boolean isAnyType()
isAnyType in interface GlobalDefpublic boolean isModelGroup()
isModelGroup in interface GlobalDefpublic int getDataType()
getDataType in interface GlobalDefpublic String getType()
getType in interface GlobalDefpublic String getName()
getName in interface GlobalDefpublic String getQualifiedName()
getQualifiedName in interface GlobalDefpublic String getQualifiedInstanceName()
NOTE: in some cases namespaces occurring in included schemas may not be defined at the instance level!
getQualifiedInstanceName in interface GlobalDefpublic Namespace getNamespace()
getNamespace in interface GlobalDefpublic String getLocation()
getLocation in interface GlobalDefpublic Element getElement()
getElement in interface GlobalDefpublic String getElementAsXml()
getElementAsXml in interface GlobalDefpublic String toString()
toString in interface GlobalDeftoString in class Objectpublic void filterChildren(String qualifiedElementName)
qualifiedElementName - NOT YET DOCUMENTED
public void filterChildren(String qualifiedElementName,
Element parent)
qualifiedElementName - NOT YET DOCUMENTEDparent - NOT YET DOCUMENTEDpublic Element getFirstChild()
public List getChildren()
public String getDocumentation()
getDocumentation in interface GlobalDefpublic 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 | ||||||||