org.eclipse.lyo.oslc4j.core.model
Class Property
java.lang.Object
org.eclipse.lyo.oslc4j.core.model.AbstractResource
org.eclipse.lyo.oslc4j.core.model.Property
- All Implemented Interfaces:
- Comparable<Property>, IExtendedResource, IResource
public final class Property
- extends AbstractResource
- implements Comparable<Property>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Property
public Property()
Property
public Property(String name,
Occurs occurs,
URI propertyDefinition,
ValueType valueType)
addRange
public void addRange(URI range)
compareTo
public int compareTo(Property o)
- Specified by:
compareTo
in interface Comparable<Property>
getAllowedValuesRef
public URI getAllowedValuesRef()
getDefaultValueObject
public Object getDefaultValueObject()
getDefaultValue
@Deprecated
public String getDefaultValue()
- Deprecated. Use
getDefaultValueObject()
, which supports types other than String
getDescription
public String getDescription()
getMaxSize
public Integer getMaxSize()
getName
public String getName()
getOccurs
public URI getOccurs()
getPropertyDefinition
public URI getPropertyDefinition()
getRange
public URI[] getRange()
getRepresentation
public URI getRepresentation()
getTitle
public String getTitle()
getValueShape
public URI getValueShape()
getValueType
public URI getValueType()
isHidden
public Boolean isHidden()
isMemberProperty
public Boolean isMemberProperty()
isReadOnly
public Boolean isReadOnly()
setAllowedValuesRef
public void setAllowedValuesRef(URI allowedValuesRef)
setDefaultValue
public void setDefaultValue(Object defaultValue)
setDescription
public void setDescription(String description)
setHidden
public void setHidden(Boolean hidden)
setMaxSize
public void setMaxSize(Integer maxSize)
setMemberProperty
public void setMemberProperty(Boolean memberProperty)
setName
public void setName(String name)
setOccurs
public void setOccurs(Occurs occurs)
setOccurs
public void setOccurs(URI occurs)
setPropertyDefinition
public void setPropertyDefinition(URI propertyDefinition)
setRange
public void setRange(URI[] ranges)
setReadOnly
public void setReadOnly(Boolean readOnly)
setRepresentation
public void setRepresentation(Representation representation)
setRepresentation
public void setRepresentation(URI representation)
setTitle
public void setTitle(String title)
setValueShape
public void setValueShape(URI valueShape)
setValueType
public void setValueType(ValueType valueType)
setValueType
public void setValueType(URI valueType)
getAllowedValuesCollection
public Collection<?> getAllowedValuesCollection()
setAllowedValuesCollection
public void setAllowedValuesCollection(Collection<?> values)
addAllowedValue
@Deprecated
public void addAllowedValue(String allowedValue)
- Deprecated. Use
setAllowedValuesCollection(Collection)
, which allows for values other than String
getAllowedValues
@Deprecated
public String[] getAllowedValues()
- Deprecated. Use
getAllowedValuesCollection()
, which allows for values other than String
setAllowedValues
@Deprecated
public void setAllowedValues(String[] allowedValues)
- Deprecated. Use
setAllowedValuesCollection(Collection)
, which allows for values other than String
Copyright © 2014. All Rights Reserved.