org.drools.lang.descr
Class TypeDeclarationDescr

java.lang.Object
  extended by org.drools.lang.descr.BaseDescr
      extended by org.drools.lang.descr.AnnotatedBaseDescr
          extended by 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

Constructor Summary
TypeDeclarationDescr()
           
TypeDeclarationDescr(String typeName)
           
 
Method Summary
 void addField(TypeFieldDescr field)
           
 int compareTo(TypeDeclarationDescr descr)
           
 Map<String,TypeFieldDescr> getFields()
           
 String getNamespace()
           
 String getSuperTypeName()
           
 String getSuperTypeNamespace()
           
 String getTypeName()
           
 void readExternal(ObjectInput in)
           
 void setFields(Map<String,TypeFieldDescr> fields)
           
 void setNamespace(String namespace)
           
 void setSuperTypeName(String type)
           
 void setSuperTypeNamespace(String superTypeNamespace)
           
 void setTypeName(String typeName)
           
 String toString()
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class org.drools.lang.descr.AnnotatedBaseDescr
addAnnotation, addAnnotation, getAnnotation, getAnnotationNames, getAnnotations
 
Methods inherited from class org.drools.lang.descr.BaseDescr
getColumn, getEndCharacter, getEndColumn, getEndLine, getLine, getStartCharacter, getText, setEndCharacter, setEndLocation, setLocation, setStartCharacter, setText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TypeDeclarationDescr

public TypeDeclarationDescr()

TypeDeclarationDescr

public TypeDeclarationDescr(String typeName)
Method Detail

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.