org.smurn.jply
Class ListProperty

java.lang.Object
  extended by org.smurn.jply.Property
      extended by org.smurn.jply.ListProperty

public class ListProperty
extends Property

Declaration of a list property of an element.

A list property stores a list of values for an element. The length of the list can be different for every element.

Some property names have a pre-defined meaning in the specification and should only be used accordingly. See ElementType for a list and a description of those properties.

All instances of this class are immutable.


Constructor Summary
ListProperty(DataType countType, String name, DataType type)
          Creates an instance.
 
Method Summary
 boolean equals(Object obj)
           
 DataType getCountType()
          Gets the type of the value storing the number of elements in the list.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class org.smurn.jply.Property
getName, getType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ListProperty

public ListProperty(DataType countType,
                    String name,
                    DataType type)
Creates an instance.

Parameters:
countType - Data type of the value storing the number of elements in the list.
name - Name of the property.
type - Data type of this property.
Throws:
NullPointerException - if countType, name or type is null.
Method Detail

getCountType

public DataType getCountType()
Gets the type of the value storing the number of elements in the list.

Returns:
Data type. Is never null.

toString

public String toString()
Overrides:
toString in class Property

equals

public boolean equals(Object obj)
Overrides:
equals in class Property

hashCode

public int hashCode()
Overrides:
hashCode in class Property


Copyright © 2011. All Rights Reserved.