|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.datacrow.core.modules.xml.XmlObject
net.datacrow.core.modules.xml.XmlField
public class XmlField
A XML definition of a DcField
.
Constructor Summary | |
---|---|
XmlField()
Creates an empty instance. |
|
XmlField(XmlField template)
Creates a new field based on an existing one. |
|
XmlField(XmlModule xmlModule,
org.w3c.dom.Element element)
Creates a new instances. |
Method Summary | |
---|---|
boolean |
canBeConverted()
|
boolean |
canConvertTo(int fieldType,
int valueType)
|
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getColumn()
The database column name |
int |
getFieldType()
The field type. |
int |
getIndex()
The unique field index. |
int |
getMaximumLength()
The maximum length for the values for this field. |
int |
getModule()
|
int |
getModuleReference()
The module reference (module index). |
java.lang.String |
getName()
The field's system name. |
int |
getValueType()
The value type. |
int |
hashCode()
|
boolean |
isEnabled()
Indicates if the field is enabled by default. |
boolean |
isNew()
|
boolean |
isOverwritable()
Indicates if this field can be removed using the module wizard. |
boolean |
isReadonly()
Indicates whether this field is editable or not. |
boolean |
isSearchable()
Indicates whether a user can search on this field. |
boolean |
isTechinfo()
Indicates whether the field holds technical information. |
boolean |
isUiOnly()
Indicates if the value is actually stored in the database or that the value is calculated. |
void |
setColumn(java.lang.String column)
Sets the database column name. |
void |
setEnabled(boolean enabled)
Indicates whether this field is enabled by default. |
void |
setFieldType(int fieldType)
Sets the field type. |
void |
setIndex(int index)
Sets the unique field index. |
void |
setMaximumLength(int maximumLength)
Sets the maximum length for the value of this field. |
void |
setModule(int module)
|
void |
setModuleReference(int moduleReference)
Sets the module reference. |
void |
setName(java.lang.String name)
Sets the system name. |
void |
setOverwritable(boolean overwritable)
Indicate if this field can be removed using the module wizard. |
void |
setReadonly(boolean readonly)
Marks the field as readonly. |
void |
setSearchable(boolean searchable)
Indicate if a user can search on this field. |
void |
setTechinfo(boolean techinfo)
Indicates if the field holds technical information. |
void |
setUiOnly(boolean uiOnly)
Indicate if the value of this field is stored in the database or that it is calculated. |
void |
setValueType(int valueType)
Sets the value type. |
java.lang.String |
toString()
|
Methods inherited from class net.datacrow.core.modules.xml.XmlObject |
---|
getClass |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public XmlField()
public XmlField(XmlField template)
template
- public XmlField(XmlModule xmlModule, org.w3c.dom.Element element) throws InvalidValueException
xmlModule
- The XML module to which the field belongs.element
- The XML element to parse.
InvalidValueException
Method Detail |
---|
public void setModule(int module)
public int getModule()
public boolean isNew()
public boolean canBeConverted()
public boolean canConvertTo(int fieldType, int valueType)
public java.lang.String getColumn()
public boolean isEnabled()
public int getFieldType()
ComponentFactory
public int getIndex()
public int getMaximumLength()
public int getModuleReference()
public java.lang.String getName()
public boolean isReadonly()
public boolean isSearchable()
public boolean isTechinfo()
public boolean isUiOnly()
public int getValueType()
DcRepository.ValueTypes
public void setColumn(java.lang.String column)
column
- public void setEnabled(boolean enabled)
enabled
- public void setFieldType(int fieldType)
fieldType
- ComponentFactory
public void setIndex(int index)
index
- public void setMaximumLength(int maximumLength)
maximumLength
- public void setModuleReference(int moduleReference)
moduleReference
- public void setName(java.lang.String name)
name
- public void setReadonly(boolean readonly)
readonly
- public void setSearchable(boolean searchable)
searchable
- public void setTechinfo(boolean techinfo)
techinfo
- public void setUiOnly(boolean uiOnly)
uiOnly
- public void setValueType(int valueType)
valueType
- DcRepository.ValueTypes
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isOverwritable()
public void setOverwritable(boolean overwritable)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |