ch.interlis.iom_j
Class ViewableProperties

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

public class ViewableProperties
extends java.lang.Object

This class implements a lightweight representation of a model.

Author:
ceis

Constructor Summary
ViewableProperties()
           
 
Method Summary
 void addAll(ViewableProperties other)
          merges the descriptions of another model to this one.
 void defineClass(java.lang.String clsName, java.lang.String[] propNames)
          adds a description of a class to this model.
 void defineClass(java.lang.String clsName, ViewableProperty[] properties)
          adds a description of a class to this model.
 boolean existsClass(java.lang.String clsName)
          tests if a given class is known.
 java.lang.String[] getClassProperties(java.lang.String iliClsName)
          gets the list of properties of an interlis class or assocition.
 ViewableProperty getClassProperty(java.lang.String iliClsName, java.lang.String propName)
          gets the description of a property.
 ViewableProperty[] getClassVProperties(java.lang.String iliClsName)
          gets the list of properties of an interlis class or assocition.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewableProperties

public ViewableProperties()
Method Detail

getClassProperties

public java.lang.String[] getClassProperties(java.lang.String iliClsName)
gets the list of properties of an interlis class or assocition.

Parameters:
iliClsName - qualified Interlis Name of class or association
Returns:
list of attributes and embedded roles

getClassVProperties

public ViewableProperty[] getClassVProperties(java.lang.String iliClsName)
gets the list of properties of an interlis class or assocition.

Parameters:
iliClsName - qualified Interlis Name of class or association
Returns:
list of attributes and embedded roles

getClassProperty

public ViewableProperty getClassProperty(java.lang.String iliClsName,
                                         java.lang.String propName)
gets the description of a property.

Parameters:
iliClsName - qualified Interlis Name of class or association
propName - name of property
Returns:
description of property or null if property doesn't exist

defineClass

public void defineClass(java.lang.String clsName,
                        java.lang.String[] propNames)
adds a description of a class to this model.

Parameters:
clsName - qualified Interlis Name of class or association
propNames - list of properties.

defineClass

public void defineClass(java.lang.String clsName,
                        ViewableProperty[] properties)
adds a description of a class to this model.

Parameters:
clsName - qualified Interlis name of class or association
properties - list of properties

existsClass

public boolean existsClass(java.lang.String clsName)
tests if a given class is known.

Parameters:
clsName - qualified name of Interlis class or association
Returns:
true if class exists, false otherwise

addAll

public void addAll(ViewableProperties other)
merges the descriptions of another model to this one.

Parameters:
other - the other model to be merged with this one