ch.interlis.iom_j
Class ViewableProperty

java.lang.Object
  extended by ch.interlis.iom_j.ViewableProperty

public class ViewableProperty
extends java.lang.Object

This class implements a lightweight description of a property.

Author:
ceis

Constructor Summary
ViewableProperty(java.lang.String propertyName)
          Constructs a new description of a property with the given name.
 
Method Summary
 java.lang.String getBaseDefInClass()
          gets the qualified ili-name of the class that contains the base definition of this property.
 java.lang.String getEnumType()
          Gets the qualified ili-Name of the Enumeration type of this property.
 java.lang.String getName()
          Gets the name of the property.
 boolean isTypeFinal()
          tests if type of property is final.
 boolean isTypeOid()
          Tests if this property is of type OID.
 void setBaseDefInClass(java.lang.String baseDefInClass)
          sets the qualified ili-name of the class that contains the base definition of this property.
 void setEnumType(java.lang.String gmlCodeSpace)
          Sets the qualified ili-Name of the Enumeration type of this property.
 void setName(java.lang.String name)
          Sets the name of the property.
 void setTypeFinal(boolean typeFinal)
          sets type of property as final.
 void setTypeOid(boolean typeOid)
          Sets/clears if this properties is of type OID.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewableProperty

public ViewableProperty(java.lang.String propertyName)
Constructs a new description of a property with the given name.

Parameters:
propertyName - name of property
Method Detail

getName

public java.lang.String getName()
Gets the name of the property.

Returns:
name of property

setName

public void setName(java.lang.String name)
Sets the name of the property.

Parameters:
name - new name of property

isTypeOid

public boolean isTypeOid()
Tests if this property is of type OID.

Returns:
true if this is property is of type OID, otherwise false.

setTypeOid

public void setTypeOid(boolean typeOid)
Sets/clears if this properties is of type OID.

Parameters:
typeOid - true if this is a OID property. false if this property is not of type OID.

getEnumType

public java.lang.String getEnumType()
Gets the qualified ili-Name of the Enumeration type of this property.

Returns:
qualified ili-name or null if not a enum type property

setEnumType

public void setEnumType(java.lang.String gmlCodeSpace)
Sets the qualified ili-Name of the Enumeration type of this property. Set to null if this is not an enumeration.


getBaseDefInClass

public java.lang.String getBaseDefInClass()
gets the qualified ili-name of the class that contains the base definition of this property. null if this is not an extended property.


setBaseDefInClass

public void setBaseDefInClass(java.lang.String baseDefInClass)
sets the qualified ili-name of the class that contains the base definition of this property.


isTypeFinal

public boolean isTypeFinal()
tests if type of property is final.


setTypeFinal

public void setTypeFinal(boolean typeFinal)
sets type of property as final.