org.ipdr.common
Class DescriptorElement

java.lang.Object
  extended by org.ipdr.common.DescriptorElement
Direct Known Subclasses:
CompositeDescriptorElement

public class DescriptorElement
extends java.lang.Object

The Descriptor Element is a structure to hold the attributes of the Element parsed from the Schema. It provides setter and getter methods.


Field Summary
protected  java.lang.String attributeDerivedType_
          This varable will store the derived typecode of attribute.
protected  java.lang.String attributeName_
          This varable will store the name of attribute.
protected  char attributeType_
          This varable will store the typecode of attribute.
protected  int maxOccurs_
          This varable will store the maxOccurs of attribute.
protected  int minOccurs_
          This varable will store the minOccurs of attribute.
 
Constructor Summary
DescriptorElement()
           
 
Method Summary
 java.lang.String getDerivedType()
          Method to get the attribute's derived type.
 int getMaxOccurs()
          Method to get the attribute's maxOccurs.
 int getMinOccurs()
          Method to get the attribute's minOccurs.
 java.lang.String getName()
          Method to get the attribute's name.
 char getType()
          Method to get the attribute's type.
 void setDerivedType(java.lang.String dType)
          Method to set the attribute's derived type.
 void setMaxOccurs(int max)
          Method to set the attribute's maxOccurs.
 void setMinOccurs(int min)
          Method to set the attribute's minOccurs.
 void setName(java.lang.String name)
          Method to set the attribute's name.
 void setType(char type)
          Method to set the attribute's type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

attributeName_

protected java.lang.String attributeName_
This varable will store the name of attribute.


attributeType_

protected char attributeType_
This varable will store the typecode of attribute.


attributeDerivedType_

protected java.lang.String attributeDerivedType_
This varable will store the derived typecode of attribute.


minOccurs_

protected int minOccurs_
This varable will store the minOccurs of attribute.


maxOccurs_

protected int maxOccurs_
This varable will store the maxOccurs of attribute.

Constructor Detail

DescriptorElement

public DescriptorElement()
Method Detail

setName

public void setName(java.lang.String name)
Method to set the attribute's name.

Parameters:
name - attribute's name

setType

public void setType(char type)
Method to set the attribute's type.

Parameters:
type - attribute's type

setDerivedType

public void setDerivedType(java.lang.String dType)
Method to set the attribute's derived type.

Parameters:
dType - attribute's derived type

setMinOccurs

public void setMinOccurs(int min)
Method to set the attribute's minOccurs.

Parameters:
min - attribute's minOccurs

setMaxOccurs

public void setMaxOccurs(int max)
Method to set the attribute's maxOccurs.

Parameters:
max - attribute's maxOccurs

getName

public java.lang.String getName()
Method to get the attribute's name.


getType

public char getType()
Method to get the attribute's type.


getDerivedType

public java.lang.String getDerivedType()
Method to get the attribute's derived type.


getMinOccurs

public int getMinOccurs()
Method to get the attribute's minOccurs.


getMaxOccurs

public int getMaxOccurs()
Method to get the attribute's maxOccurs.