org.drools.lang.descr
Class AbstractClassTypeDeclarationDescr
java.lang.Object
org.drools.lang.descr.BaseDescr
org.drools.lang.descr.AnnotatedBaseDescr
org.drools.lang.descr.AbstractClassTypeDeclarationDescr
- All Implemented Interfaces:
- Externalizable, Serializable, Namespaceable
- Direct Known Subclasses:
- EnumDeclarationDescr, TypeDeclarationDescr
public abstract class AbstractClassTypeDeclarationDescr
- extends AnnotatedBaseDescr
- implements Namespaceable
- See Also:
- Serialized Form
Methods inherited from class org.drools.lang.descr.BaseDescr |
copyLocation, getColumn, getEndCharacter, getEndColumn, getEndLine, getLine, getNamespace, getResource, getStartCharacter, getText, positionAsString, setEndCharacter, setEndLocation, setLocation, setStartCharacter, setText |
AbstractClassTypeDeclarationDescr
public AbstractClassTypeDeclarationDescr(String name)
AbstractClassTypeDeclarationDescr
public AbstractClassTypeDeclarationDescr(String typeName,
String typeNamespace)
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
- Overrides:
setNamespace
in class BaseDescr
getTypeName
public String getTypeName()
- Returns:
- the identifier
setTypeName
public void setTypeName(String typeName)
- Parameters:
typeName
- the identifier to set
getType
public QualifiedName getType()
setType
public void setType(QualifiedName qname)
setType
public void setType(String name,
String namespace)
getSuperTypeName
public String getSuperTypeName()
getSuperTypeNamespace
public String getSuperTypeNamespace()
getSupertTypeFullName
public String getSupertTypeFullName()
getSuperTypes
public List<QualifiedName> getSuperTypes()
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)
setResource
public void setResource(org.drools.io.Resource resource)
- Overrides:
setResource
in class BaseDescr
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.