public class AttributeTemplate extends java.lang.Object implements AttributeWithUIConfigurationI
Constructor and Description |
---|
AttributeTemplate(SchemaInterfaceI interfaceI,
electric.xml.Element xml) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(java.lang.Object o) |
java.lang.String |
getComment() |
java.lang.String |
getContainingElementName() |
java.lang.String |
getContainingElementPackage() |
int |
getEditmode() |
int |
getExpectedWidth() |
java.util.Map<java.lang.String,java.lang.String> |
getGuiTips() |
java.lang.String |
getItemProperty() |
java.lang.String |
getName() |
EntityI |
getRelationEntity() |
java.lang.String |
getRelationType() |
java.lang.String |
getSelectionFilter() |
java.lang.String |
getSingular() |
java.lang.String |
getTimeZoneProperty() |
CBOAttributeTypeI |
getType() |
java.lang.String |
getTypeName()
Returns the type information of this attribute.
|
electric.xml.Element |
getXML() |
boolean |
hasCustomIterator()
Returns true if this AttributeI is a relation that uses a custom iterator to fetch its members incrementally.
|
boolean |
isAutotrim() |
boolean |
isCreateInDetailView() |
boolean |
isMandatory() |
boolean |
isManyRelation() |
boolean |
isReadonly()
Returns whether this
AttributeI instance is strictly read-only. |
boolean |
isRelation() |
boolean |
isVirtual() |
boolean |
isVisible() |
void |
setAutotrim(boolean autotrim) |
void |
setCreateInDetailView(boolean createInDetailView) |
void |
setEditable(boolean editable) |
void |
setEditmode(int editmode) |
void |
setExpectedWidth(int expectedWidth) |
void |
setGuiTips(java.util.Map<java.lang.String,java.lang.String> guiTips) |
void |
setItemProperty(java.lang.String itemProperty) |
void |
setMandatory(boolean mandatory) |
void |
setRelationEntity(EntityI entity) |
void |
setSelectionFilter(java.lang.String selectionFilter) |
void |
setTimeZoneProperty(java.lang.String timeZoneProperty) |
void |
setVisible(boolean visible) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getClazz, isArray
public AttributeTemplate(SchemaInterfaceI interfaceI, electric.xml.Element xml)
public void setRelationEntity(EntityI entity)
public electric.xml.Element getXML()
public java.lang.String getContainingElementName()
getContainingElementName
in interface BasicAttributeI
public java.lang.String getContainingElementPackage()
getContainingElementPackage
in interface BasicAttributeI
public java.lang.String getName()
getName
in interface BasicAttributeI
public java.lang.String getComment()
getComment
in interface BasicAttributeI
public CBOAttributeTypeI getType()
getType
in interface BasicAttributeI
public java.lang.String getTypeName()
BasicAttributeI
For relations, this is either the simple or qualified name of the referenced entity. For scalars, this is the declared type in the schema.
getTypeName
in interface BasicAttributeI
public java.lang.String getSingular()
getSingular
in interface BasicAttributeI
public boolean isRelation()
isRelation
in interface BasicAttributeI
public boolean isManyRelation()
isManyRelation
in interface BasicAttributeI
public EntityI getRelationEntity()
getRelationEntity
in interface BasicAttributeI
public java.lang.String getRelationType()
getRelationType
in interface BasicAttributeI
SchemaI.RELATION_TYPE_N_1
,
SchemaI.RELATION_TYPE_1_N
or
SchemaI.RELATION_TYPE_N_M
.
The empty String (or null?) for scalars.public boolean hasCustomIterator()
BasicAttributeI
hasCustomIterator
in interface BasicAttributeI
public boolean isVirtual()
isVirtual
in interface BasicAttributeI
public boolean isReadonly()
BasicAttributeI
AttributeI
instance is strictly read-only.
An attribute that is strictly read-only cannot be modified under any circumstances.
If this method returns true, any attempt to modify the attribute will result in an
exception being thrown.isReadonly
in interface BasicAttributeI
AttributeI
is strictly read-only, false otherwise.public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable<java.lang.Object>
public void setEditmode(int editmode)
setEditmode
in interface AttributeWithUIConfigurationI
public int getEditmode()
getEditmode
in interface AttributeWithUIConfigurationI
public void setCreateInDetailView(boolean createInDetailView)
setCreateInDetailView
in interface AttributeWithUIConfigurationI
public boolean isCreateInDetailView()
isCreateInDetailView
in interface AttributeWithUIConfigurationI
public void setItemProperty(java.lang.String itemProperty)
setItemProperty
in interface AttributeWithUIConfigurationI
public java.lang.String getItemProperty()
getItemProperty
in interface AttributeWithUIConfigurationI
public void setMandatory(boolean mandatory)
setMandatory
in interface AttributeWithUIConfigurationI
public boolean isMandatory()
isMandatory
in interface AttributeWithUIConfigurationI
public void setGuiTips(java.util.Map<java.lang.String,java.lang.String> guiTips)
setGuiTips
in interface AttributeWithUIConfigurationI
public java.util.Map<java.lang.String,java.lang.String> getGuiTips()
getGuiTips
in interface AttributeWithUIConfigurationI
public void setVisible(boolean visible)
setVisible
in interface AttributeWithUIConfigurationI
public boolean isVisible()
isVisible
in interface AttributeWithUIConfigurationI
public void setExpectedWidth(int expectedWidth)
setExpectedWidth
in interface AttributeWithUIConfigurationI
public int getExpectedWidth()
getExpectedWidth
in interface AttributeWithUIConfigurationI
public void setSelectionFilter(java.lang.String selectionFilter)
setSelectionFilter
in interface AttributeWithUIConfigurationI
public java.lang.String getSelectionFilter()
getSelectionFilter
in interface AttributeWithUIConfigurationI
public void setEditable(boolean editable)
setEditable
in interface AttributeWithUIConfigurationI
public void setAutotrim(boolean autotrim)
setAutotrim
in interface AttributeWithUIConfigurationI
public boolean isAutotrim()
isAutotrim
in interface AttributeWithUIConfigurationI
public void setTimeZoneProperty(java.lang.String timeZoneProperty)
setTimeZoneProperty
in interface AttributeWithUIConfigurationI
public java.lang.String getTimeZoneProperty()
getTimeZoneProperty
in interface AttributeWithUIConfigurationI
Copyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.