de.smartics.properties.spi.core.convert
Class ListPropertyHelper

Package class diagram package ListPropertyHelper
java.lang.Object
  extended by de.smartics.properties.spi.core.convert.ListPropertyHelper

public final class ListPropertyHelper
     
     
extends Object

Helper to access list property information.


Constructor Summary
ListPropertyHelper(PropertyDescriptor descriptor)
          Default constructor.
 
Method Summary
 Class<?> getArrayTypeOfElementType()
          Returns an array type for the element's type.
 PropertyDescriptor getDescriptor()
          Returns the list descriptor to analyze.
 Class<?> getElementType()
          Returns the type of elements of the list.
 ListValueConstraint getListValueConstraint()
          Returns the constraint that contains all list issues.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListPropertyHelper

public ListPropertyHelper(PropertyDescriptor descriptor)
                   throws de.smartics.util.lang.NullArgumentException,
                          IllegalArgumentException
Default constructor.

Parameters:
descriptor - the list descriptor to analyze.
Throws:
de.smartics.util.lang.NullArgumentException - if descriptor is null.
IllegalArgumentException - if the descriptor does not describe a list property or lacks the required ListValueConstraint.
Method Detail

getDescriptor

public PropertyDescriptor getDescriptor()
Returns the list descriptor to analyze.

Returns:
the list descriptor to analyze.

getListValueConstraint

public ListValueConstraint getListValueConstraint()
Returns the constraint that contains all list issues.

Returns:
the constraint that contains all list issues.

getElementType

public Class<?> getElementType()
Returns the type of elements of the list.

Returns:
the type of elements of the list.

getArrayTypeOfElementType

public Class<?> getArrayTypeOfElementType()
Returns an array type for the element's type.

Returns:
an array type for the element's type.


Copyright © 2012-2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.