org.drools.lang.descr
Class TypeDeclarationDescr
java.lang.Object
org.drools.lang.descr.BaseDescr
org.drools.lang.descr.AnnotatedBaseDescr
org.drools.lang.descr.TypeDeclarationDescr
- All Implemented Interfaces:
- Externalizable, Serializable, Comparable<TypeDeclarationDescr>, Namespaceable
public class TypeDeclarationDescr
- extends AnnotatedBaseDescr
- implements Namespaceable, Comparable<TypeDeclarationDescr>
- See Also:
- Serialized Form
Methods inherited from class org.drools.lang.descr.BaseDescr |
getColumn, getEndCharacter, getEndColumn, getEndLine, getLine, getStartCharacter, getText, setEndCharacter, setEndLocation, setLocation, setStartCharacter, setText |
TypeDeclarationDescr
public TypeDeclarationDescr()
TypeDeclarationDescr
public TypeDeclarationDescr(String typeName)
readExternal
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
- Specified by:
readExternal
in interface Externalizable
- Overrides:
readExternal
in class AnnotatedBaseDescr
- Throws:
IOException
ClassNotFoundException
writeExternal
public void writeExternal(ObjectOutput out)
throws IOException
- Specified by:
writeExternal
in interface Externalizable
- Overrides:
writeExternal
in class AnnotatedBaseDescr
- Throws:
IOException
setNamespace
public void setNamespace(String namespace)
- Specified by:
setNamespace
in interface Namespaceable
getNamespace
public String getNamespace()
- Specified by:
getNamespace
in interface Namespaceable
getTypeName
public String getTypeName()
- Returns:
- the identifier
setTypeName
public void setTypeName(String typeName)
- Parameters:
typeName
- the identifier to set
getFields
public Map<String,TypeFieldDescr> getFields()
- Returns:
- the fields
setFields
public void setFields(Map<String,TypeFieldDescr> fields)
- Parameters:
fields
- the fields to set
addField
public void addField(TypeFieldDescr field)
toString
public String toString()
- Overrides:
toString
in class Object
getSuperTypeName
public String getSuperTypeName()
setSuperTypeName
public void setSuperTypeName(String type)
getSuperTypeNamespace
public String getSuperTypeNamespace()
setSuperTypeNamespace
public void setSuperTypeNamespace(String superTypeNamespace)
compareTo
public int compareTo(TypeDeclarationDescr descr)
- Specified by:
compareTo
in interface Comparable<TypeDeclarationDescr>
Copyright © 2001-2013 JBoss Inc.. All Rights Reserved.