public class TypeProperty extends ObjectPrinter
| Constructor and Description |
|---|
TypeProperty() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object objectToCompare) |
String |
getDisplayName()
Retrieve the display name of this property.
|
int |
getMaxCardinality()
Retrieve the maximum number of occurrences of this property, where -1 means infinite.
|
int |
getMinCardinality()
Retrieve the minimum number of occurrences of this property, where 1 means the property is mandatory.
|
String |
getName()
Retrieve the name of this property.
|
TypeReference |
getType()
Retrieve the data type / reference of this property.
|
int |
hashCode() |
void |
setDisplayName(String displayName)
Set the display name of this property.
|
void |
setMaxCardinality(int maxCardinality)
Set the maximum number of occurrences of this property, where -1 means infinite.
|
void |
setMinCardinality(int minCardinality)
Set the minimum number of occurrences of this property, where 1 means the property is mandatory.
|
void |
setName(String name)
Set the name of this property.
|
void |
setType(TypeReference type)
Set the data type / reference of this property.
|
toStringpublic int getMaxCardinality()
public void setMaxCardinality(int maxCardinality)
maxCardinality - maximum number of occurrences of this propertypublic int getMinCardinality()
public void setMinCardinality(int minCardinality)
minCardinality - minimum number of occurrences of this propertypublic String getName()
public void setName(String name)
name - the name of this propertypublic String getDisplayName()
public void setDisplayName(String displayName)
displayName - the display name of this propertypublic TypeReference getType()
public void setType(TypeReference type)
type - the data type / reference of this propertyCopyright © 2018–2021 ODPi. All rights reserved.