public class JcrProperty extends Object implements Serializable
| Constructor and Description |
|---|
JcrProperty() |
JcrProperty(String name,
String type,
String value,
String displayValue)
Creates new property object.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDisplayValue() |
String |
getName()
Gets name of the property.
|
String |
getType()
Gets property type.
|
String |
getValue()
Gets value of the property.
|
boolean |
isBinary()
Test this property for binary type.
|
boolean |
isMultiValue() |
boolean |
isProtected() |
void |
setMultiValue(boolean isMultiValue)
Marks property as multiple or single value.
|
void |
setName(String name)
Modifies name of the property.
|
void |
setProtected(boolean isProtected)
Marks property either protected or not.
|
void |
setType(String type)
Modifies type of the property.
|
void |
setValue(String value)
Modifies value of the property.
|
public JcrProperty()
public JcrProperty(String name, String type, String value, String displayValue)
name - the name of the property.type - text description for the typevalue - text view of the value.displayValue - the value to displaypublic void setName(String name)
name - the new name for the property.public void setType(String type)
type - the new type of the property.public String getDisplayValue()
public boolean isMultiValue()
public void setMultiValue(boolean isMultiValue)
isMultiValue - true if property has multiple valuepublic boolean isProtected()
public void setProtected(boolean isProtected)
isProtected - true if property is protected false otherwise.public boolean isBinary()
Copyright © 2008–2018 JBoss, a division of Red Hat. All rights reserved.