net.sourceforge.nrl.parser.model.xsd
Class XSDDataType

java.lang.Object
  extended by net.sourceforge.nrl.parser.model.AbstractModelElement
      extended by net.sourceforge.nrl.parser.model.AbstractClassifier
          extended by net.sourceforge.nrl.parser.model.xsd.XSDDataType
All Implemented Interfaces:
IClassifier, IDataType, IModelElement

public class XSDDataType
extends AbstractClassifier
implements IDataType

An XSD data type is either a simple type, a derived simple type, or a complex type derived from a simple type (with optional added attributes).


Nested Class Summary
 
Nested classes/interfaces inherited from interface net.sourceforge.nrl.parser.model.IModelElement
IModelElement.ElementType
 
Constructor Summary
XSDDataType(String name, IPackage container)
           
 
Method Summary
 List<String> getDocumentation()
          Return any documentation associated with the element.
 IModelElement.ElementType getElementType()
          Return an enum indicating what type of element this is, to reduce the need to sub-cast prematurely.
 String getParentName()
           
 boolean hasStrippedAttributes()
           
 boolean isBuiltIn()
          Return true if this is a built-in NRL type
 void setAttributesStripped(boolean attributesStripped)
           
 void setParentName(String parentName)
           
 
Methods inherited from class net.sourceforge.nrl.parser.model.AbstractClassifier
addAttribute, getAttributeByName, getAttributes, getAttributes, hasAttribute, hasNonStaticAttributes, hasStaticAttributes, isEnumeration, removeAttribute, removeAttributeNameMapping, setEnumeration
 
Methods inherited from class net.sourceforge.nrl.parser.model.AbstractModelElement
addChild, getContainingPackage, getDescendants, getName, getOriginalName, getParent, getQualifiedName, getUserData, isAssignableFrom, isSupplementary, setName, setOriginalName, setParent, setSupplementary, setUserData
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sourceforge.nrl.parser.model.IClassifier
getAttributeByName, getAttributes, hasAttribute, hasStaticAttributes, isEnumeration
 
Methods inherited from interface net.sourceforge.nrl.parser.model.IModelElement
getContainingPackage, getDescendants, getName, getOriginalName, getParent, getQualifiedName, getUserData, isAssignableFrom, isSupplementary, setUserData
 

Constructor Detail

XSDDataType

public XSDDataType(String name,
                   IPackage container)
Method Detail

getDocumentation

public List<String> getDocumentation()
Description copied from interface: IModelElement
Return any documentation associated with the element.

Specified by:
getDocumentation in interface IModelElement
Returns:
the documentation as a list of strings, or an empty list

getElementType

public IModelElement.ElementType getElementType()
Description copied from interface: IModelElement
Return an enum indicating what type of element this is, to reduce the need to sub-cast prematurely.

Specified by:
getElementType in interface IModelElement
Returns:
the element type

getParentName

public String getParentName()

hasStrippedAttributes

public boolean hasStrippedAttributes()

isBuiltIn

public boolean isBuiltIn()
Description copied from interface: IDataType
Return true if this is a built-in NRL type

Specified by:
isBuiltIn in interface IDataType
Returns:
true if built-in

setParentName

public void setParentName(String parentName)

setAttributesStripped

public void setAttributesStripped(boolean attributesStripped)


Copyright © 2006-2010 Christian Nentwich and others