info.sswap.api.input.impl
Class PropertyInputImpl

java.lang.Object
  extended by info.sswap.api.input.impl.AbstractInput
      extended by info.sswap.api.input.impl.PropertyInputImpl
All Implemented Interfaces:
Input, PropertyInput, java.io.Serializable

public class PropertyInputImpl
extends AbstractInput
implements PropertyInput

Author:
Evren Sirin
See Also:
Serialized Form

Field Summary
private  int maxCardinality
           
private  int minCardinality
           
private  java.net.URI property
           
private  Input range
           
 
Fields inherited from class info.sswap.api.input.impl.AbstractInput
description, label, propertyInput, type, value
 
Fields inherited from interface info.sswap.api.input.PropertyInput
DEFAULT_MAX, DEFAULT_MIN
 
Constructor Summary
PropertyInputImpl(java.net.URI property)
           
 
Method Summary
 void accept(InputVisitor visitor)
          Visitor function.
 boolean equals(java.lang.Object obj)
           
 int getMaxCardinality()
          
 int getMinCardinality()
          
 java.net.URI getProperty()
          
 Input getRange()
          
 int hashCode()
           
 boolean hasMaxCardinality()
          
 boolean hasMinCardinality()
          
 void setMaxCardinality(int maxCardinality)
          
 void setMinCardinality(int minCardinality)
          
 void setRange(Input range)
          
 java.lang.String toString()
           
 
Methods inherited from class info.sswap.api.input.impl.AbstractInput
genericEqualTo, getDescription, getLabel, getPropertyInput, getType, getValue, isUnrestricted, setDescription, setLabel, setPropertyInput, setValue, toStringLabel
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface info.sswap.api.input.PropertyInput
getType
 
Methods inherited from interface info.sswap.api.input.Input
getDescription, getLabel, getPropertyInput, getValue, isUnrestricted, setDescription, setLabel, setPropertyInput, setValue
 

Field Detail

property

private final java.net.URI property

range

private Input range

minCardinality

private int minCardinality

maxCardinality

private int maxCardinality
Constructor Detail

PropertyInputImpl

public PropertyInputImpl(java.net.URI property)
Method Detail

accept

public void accept(InputVisitor visitor)
Visitor function.

Specified by:
accept in interface Input

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

getProperty

public java.net.URI getProperty()

Specified by:
getProperty in interface PropertyInput

getRange

public Input getRange()

Specified by:
getRange in interface PropertyInput

setRange

public void setRange(Input range)

Specified by:
setRange in interface PropertyInput

getMinCardinality

public int getMinCardinality()

Specified by:
getMinCardinality in interface PropertyInput

hasMinCardinality

public boolean hasMinCardinality()

Specified by:
hasMinCardinality in interface PropertyInput

setMinCardinality

public void setMinCardinality(int minCardinality)

Specified by:
setMinCardinality in interface PropertyInput

getMaxCardinality

public int getMaxCardinality()

Specified by:
getMaxCardinality in interface PropertyInput

hasMaxCardinality

public boolean hasMaxCardinality()

Specified by:
hasMaxCardinality in interface PropertyInput

setMaxCardinality

public void setMaxCardinality(int maxCardinality)

Specified by:
setMaxCardinality in interface PropertyInput

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright (c) 2011, iPlant Collaborative, University of Arizona, Cold Spring Harbor Laboratories, University of Texas at Austin.