public abstract class Property
extends java.lang.Object
implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
Property.Arity |
static class |
Property.Tags |
Modifier and Type | Field and Description |
---|---|
java.lang.String |
arity |
static java.lang.String |
ARITY_MANY |
static java.lang.String |
ARITY_ONE |
static java.lang.String |
ARITY_ZERO_OR_ONE |
java.lang.String |
comment |
static java.lang.String |
DEFAULT_ARITY |
java.util.List<KeyValue> |
keyValue |
java.util.List<Label> |
label |
java.lang.String |
name |
protected Property.Tags |
tags |
Constructor and Description |
---|
Property() |
Property(Property o)
Copy constructor
|
Property(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
addKeyValue(java.lang.String key,
java.lang.String value) |
void |
check(boolean deep,
java.lang.String errorContext)
Checks this Property.
|
static Property |
fromString(java.lang.String s)
String representation of this Property.
|
java.lang.String |
getArity()
The arity of the property (zero_or_one, one, many)
enum(zero_or_one, one, many) |
Property.Arity |
getArityAsEnum()
The arity of the property (zero_or_one, one, many)
enum(zero_or_one, one, many) |
java.lang.String |
getComment()
Optional comment to explain property use.
|
java.util.List<KeyValue> |
getKeyValue() |
java.util.List<Label> |
getLabel()
Labels for the internationalization of this property's name
|
java.lang.String |
getName()
Property name
|
Property.Tags |
getTags() |
static boolean |
isA(java.lang.String str,
Property.Arity item) |
static boolean |
isOneOf(java.lang.String str,
Property.Arity... items) |
Property |
makeCopy() |
static Property |
readFrom(java.io.InputStream is)
Read this Property from an XML fragment.
|
void |
setArity(Property.Arity item)
The arity of the property (zero_or_one, one, many)
enum(zero_or_one, one, many) |
void |
setArity(java.lang.String arity)
The arity of the property (zero_or_one, one, many)
enum(zero_or_one, one, many) |
void |
setComment(java.lang.String comment)
Optional comment to explain property use.
|
void |
setName(java.lang.String name)
Property name
|
void |
setTags(Property.Tags __value) |
java.lang.String |
toString()
String representation of this Property.
|
Property |
withArity(java.lang.String arity) |
Property |
withComment(java.lang.String comment) |
Property |
withKeyValue(java.util.Collection<KeyValue> __values) |
Property |
withKeyValue(KeyValue... __values) |
Property |
withLabel(java.util.Collection<Label> __values) |
Property |
withLabel(Label... __values)
Labels for the internationalization of this property's name
|
Property |
withName(java.lang.String name) |
Property |
withTags(java.util.Collection<KeyValue> __values) |
Property |
withTags(KeyValue... __values) |
Property |
withTags(Property.Tags __value) |
void |
writeTo(java.io.OutputStream os) |
public java.util.List<KeyValue> keyValue
public java.lang.String arity
public static final java.lang.String DEFAULT_ARITY
public java.lang.String name
public java.lang.String comment
public java.util.List<Label> label
protected Property.Tags tags
public static final java.lang.String ARITY_MANY
public static final java.lang.String ARITY_ONE
public static final java.lang.String ARITY_ZERO_OR_ONE
public Property()
public Property(Property o)
public Property(java.lang.String name)
public static boolean isA(java.lang.String str, Property.Arity item)
public static boolean isOneOf(java.lang.String str, Property.Arity... items)
public void setArity(Property.Arity item)
enum(zero_or_one, one, many)
public Property.Arity getArityAsEnum()
enum(zero_or_one, one, many)
public java.util.List<KeyValue> getKeyValue()
public void setArity(java.lang.String arity)
enum(zero_or_one, one, many)
public java.lang.String getArity()
enum(zero_or_one, one, many)
public Property withArity(java.lang.String arity)
public void setName(java.lang.String name)
public java.lang.String getName()
public Property withName(java.lang.String name)
public void setComment(java.lang.String comment)
public java.lang.String getComment()
public Property withComment(java.lang.String comment)
public java.util.List<Label> getLabel()
public Property withLabel(Label... __values)
public Property.Tags getTags()
public void setTags(Property.Tags __value)
public Property withTags(Property.Tags __value)
public Property makeCopy()
public static Property readFrom(java.io.InputStream is) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public void writeTo(java.io.OutputStream os) throws javax.xml.bind.JAXBException, java.io.IOException
javax.xml.bind.JAXBException
java.io.IOException
public static Property fromString(java.lang.String s) throws javax.xml.bind.JAXBException, java.io.UnsupportedEncodingException
javax.xml.bind.JAXBException
java.io.UnsupportedEncodingException
public java.lang.String toString()
toString
in class java.lang.Object
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
com.exalead.util.TypedException
public void addKeyValue(java.lang.String key, java.lang.String value)
Copyright © 2021 Dassault Systèmes, All Rights Reserved.