public class ConfigPropertyImpl extends java.lang.Object implements ConfigProperty
ConfigProperty.Attribute, ConfigProperty.Tag
Modifier and Type | Field and Description |
---|---|
protected XsdString |
configPropertyName
configPropertyName
|
protected XsdString |
configPropertyType
configPropertyType
|
protected XsdString |
configPropertyValue
configPropertyValue
|
protected java.util.ArrayList<LocalizedXsdString> |
description
description
|
protected java.lang.String |
id
id
|
protected boolean |
mandatory
mandatory
|
Constructor and Description |
---|
ConfigPropertyImpl(java.util.List<LocalizedXsdString> description,
XsdString configPropertyName,
XsdString configPropertyType,
XsdString configPropertyValue,
java.lang.String id)
Create a new ConfigProperty15.
|
ConfigPropertyImpl(java.util.List<LocalizedXsdString> description,
XsdString configPropertyName,
XsdString configPropertyType,
XsdString configPropertyValue,
java.lang.String id,
boolean mandatory)
Create a new ConfigProperty15.
|
Modifier and Type | Method and Description |
---|---|
CopyableMetaData |
copy()
Creates and returns a copy of this object.
|
boolean |
equals(java.lang.Object obj) |
XsdString |
getConfigPropertyName() |
XsdString |
getConfigPropertyType() |
XsdString |
getConfigPropertyValue() |
java.util.List<LocalizedXsdString> |
getDescriptions() |
java.lang.String |
getId()
Return the String representing xml ID
|
int |
hashCode() |
boolean |
isMandatory()
Is the config property mandatory
|
boolean |
isValueSet()
convenient method t verify if the value has already been set
|
void |
setMandatory(boolean v)
Is the config-property mandatory
|
java.lang.String |
toString() |
protected final java.util.ArrayList<LocalizedXsdString> description
protected final XsdString configPropertyName
protected final XsdString configPropertyType
protected final XsdString configPropertyValue
protected final java.lang.String id
protected boolean mandatory
public ConfigPropertyImpl(java.util.List<LocalizedXsdString> description, XsdString configPropertyName, XsdString configPropertyType, XsdString configPropertyValue, java.lang.String id)
description
- the descriptionconfigPropertyName
- name of config-propertyconfigPropertyType
- type of config-propertyconfigPropertyValue
- value of config-propertyid
- id attribute in xml filepublic ConfigPropertyImpl(java.util.List<LocalizedXsdString> description, XsdString configPropertyName, XsdString configPropertyType, XsdString configPropertyValue, java.lang.String id, boolean mandatory)
description
- the descriptionconfigPropertyName
- name of config-propertyconfigPropertyType
- type of config-propertyconfigPropertyValue
- value of config-propertyid
- id attribute in xml filemandatory
- mandatorypublic java.util.List<LocalizedXsdString> getDescriptions()
getDescriptions
in interface ConfigProperty
public XsdString getConfigPropertyName()
getConfigPropertyName
in interface ConfigProperty
public XsdString getConfigPropertyType()
getConfigPropertyType
in interface ConfigProperty
public XsdString getConfigPropertyValue()
getConfigPropertyValue
in interface ConfigProperty
public java.lang.String getId()
ConfigProperty
getId
in interface ConfigProperty
getId
in interface IdDecoratedMetadata
IdDecoratedMetadata.getId()
public boolean isValueSet()
ConfigProperty
isValueSet
in interface ConfigProperty
public boolean isMandatory()
ConfigProperty
isMandatory
in interface ConfigProperty
public void setMandatory(boolean v)
v
- The valuepublic CopyableMetaData copy()
CopyableMetaData
copy
in interface CopyableMetaData
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2013 IronJacamar (http://www.ironjacamar.org)