|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ix.icore.AbstractAnnotatedObject ix.iview.domain.UIObjectClass
public class UIObjectClass
A class that helps to edit type specifications for activity relatable objects. Note that these are all types rather than the objects themselves. Objects can be instantiated during execution, but not here.
Field Summary | |
---|---|
Annotations |
annotations
|
protected ObjectClass |
baseObject
|
protected java.lang.String |
baseReference
|
(package private) java.util.HashSet |
dataChangeListeners
|
Symbol |
name
|
ix.icore.domain.ListOfObjectProperty |
objectProperties
A list of symbols that are property names. |
ix.util.lisp.ListOfSymbol |
subClassNames
A list of symbol names of child UIObjectClasses |
ix.util.lisp.ListOfSymbol |
superClassNames
A list of symbol names of parent UIObjectClasses |
protected UIDomain |
uiDomain
|
Fields inherited from class ix.icore.AbstractAnnotatedObject |
---|
annotationListeners |
Constructor Summary | |
---|---|
UIObjectClass(UIDomain uiDomain,
ObjectClass original)
|
|
UIObjectClass(UIDomain uiDomain,
java.lang.String name)
|
|
UIObjectClass(UIDomain uiDomain,
Symbol name)
|
Method Summary | |
---|---|
void |
addChild(IXNode child)
|
void |
addChild(java.lang.String child)
|
void |
addChild(Symbol child)
|
void |
addChildren(java.util.List children)
Adds a list of UIObjectClass to sub classes. |
void |
addDataChangeListener(DataChangeListener l)
|
void |
addParent(IXNode parent)
|
void |
addParents(java.util.List parents)
Adds a list of UIObjectClass to super classes. |
void |
addProperty(ObjectProperty property)
|
void |
addProperty(java.lang.String property)
|
void |
addProperty(java.lang.String property,
ObjectProperty.Syntax type)
|
void |
addProperty(java.lang.String property,
java.lang.String type)
|
void |
addProperty(Symbol property)
|
void |
addProperty(Symbol property,
ObjectProperty.Syntax type)
|
void |
addToDomain()
|
void |
addToDomain(Domain domain)
Adds the contents of this UIObject to the domain (part of publish). |
boolean |
checkLegalParent(UIObjectClass otherNode)
|
java.util.Enumeration |
children()
|
UIObjectClass |
cloneThis()
|
java.util.List |
collectChanges()
Collects the differences between this object and the base one. |
java.util.List |
collectChanges(ObjectClass original)
Collects the differences between this object and the given one. |
java.util.List |
collectChanges(ObjectClass original,
java.lang.String which)
|
java.util.List |
collectChangesFromOriginal()
Collects the differences between this object and the base one. |
static ix.util.lisp.LinkedListOfSymbol |
collectClassNames(java.util.List objects)
|
boolean |
getAllowsChildren()
|
java.util.HashSet |
getAllProperties()
|
java.util.HashSet |
getAncestorProperties()
|
Annotations |
getAnnotations()
|
java.lang.Class |
getBaseClass()
Gets the class of objects that can represent this one in the domain. |
IXObject |
getBaseObject()
Gets the object that corresponds to this one in the domain. |
java.lang.Object |
getBaseReference()
Gets the Id that can be used to identify the base object in the domain. |
javax.swing.tree.TreeNode |
getChildAt(int index)
|
int |
getChildCount()
|
java.util.List |
getChildren()
|
Domain |
getDomain()
Gets the base domain. |
int |
getIndex(javax.swing.tree.TreeNode node)
|
java.lang.String |
getName()
|
java.util.List |
getObjectProperties()
|
IXObject |
getOriginal()
Gets the object that corresponds to this one in the original domain. |
java.util.HashSet |
getOwnProperties()
|
javax.swing.tree.TreeNode |
getParent()
|
java.util.List |
getParents()
|
java.util.List |
getSubClassNames()
|
java.util.List |
getSuperClassNames()
|
UIDomain |
getUIDomain()
Gets the ui domain of which this object is part. |
boolean |
hasChanged()
Determines whether the object has changed since it was last saved to draft |
boolean |
hasChanged(ObjectClass original)
|
boolean |
hasChangedFromOriginal()
Determines whether the object has changed from its original. |
boolean |
hasOriginal()
Determines whether the object has an original in the base domain. |
boolean |
isEmpty()
If the specifications are empty, we don't care about the parents. |
boolean |
isEmpty(ObjectClass oc)
If the original specifications are empty |
boolean |
isLeaf()
|
boolean |
isNodeAncestor(javax.swing.tree.TreeNode otherNode)
Returns true if the node is this node, or if it is a parent of this node, or if it is an ancestor of one of the parents. |
boolean |
isOwnProperty(ObjectProperty prop)
|
boolean |
isParentOf(UIObjectClass otherNode)
|
boolean |
isProperty(ObjectProperty prop)
|
boolean |
isProperty(java.lang.String prop)
|
boolean |
isUndefined()
|
void |
loadFromDomain()
Loads this object from its baseObject. |
void |
loadFromDomain(java.lang.Object domainObject)
Loads the contents of this object from the given object. |
void |
loadFromOriginal()
Loads the contents of this object from its original domain object. |
IXObject |
makeBaseObject()
Makes an empty object of the right class that can represent this UIObject in the domain. |
void |
moveToUIDomain(UIDomain uiDomain)
Move the object from its current UIDomain to the given one. |
boolean |
nameHasChanged(java.lang.Object nameThing)
Determines whether the object's identifying fields have changed |
void |
noteChange()
Get the UIDomain to note the change of this object |
java.lang.String |
print()
|
void |
removeChild(IXNode child)
|
void |
removeChild(java.lang.String child)
|
void |
removeChild(Symbol child)
|
void |
removeDataChangeListener(DataChangeListener l)
|
void |
removeFromDomain()
|
void |
removeFromDomain(Domain domain)
Removes the object's corresponding base object from the domain. |
void |
removeParent(IXNode parent)
|
void |
removeParent(java.lang.String parent)
|
void |
removeParent(Symbol parent)
|
void |
removeProperty(java.lang.Object property)
|
void |
replaceProperty(ObjectProperty oldProp,
ObjectProperty newProp)
|
java.lang.String |
reportLegalChild(UIObjectClass otherNode)
|
java.lang.String |
reportLegalParent(UIObjectClass otherNode)
|
boolean |
sameValue(java.lang.String field,
java.lang.Object value,
java.lang.Object otherValue)
Determines whether the two given values of the given field differ. |
void |
saveToDomain()
Saves this object into a suitable baseObject. |
void |
saveToDomain(java.lang.Object domainObject)
Saves the contents of this object into the given object. |
void |
setAnnotations(Annotations annotations)
|
void |
setBaseObject(IXObject object)
Sets the object that will represent this one in the domain. |
void |
setBaseReference(java.lang.Object ref)
Sets the Id that can be used to identify the base object in the domain. |
void |
setLegalName(java.lang.String newName)
|
void |
setName(java.lang.String newName)
|
void |
setObjectProperties(java.util.List newValue)
|
void |
setSubClassNames(java.util.List newValue)
|
void |
setSuperClassNames(java.util.List newValue)
|
boolean |
setValue(java.lang.String field,
java.lang.Object value)
Edits the ARO type. |
java.lang.String |
superString()
|
protected void |
tidyChildren(Symbol oldN,
Symbol newN)
|
protected void |
tidyParents(Symbol oldN,
Symbol newN)
|
java.lang.String |
toString()
|
void |
updateInDomain(Domain domain)
Updates the base object in the domain with the contents of this object. |
void |
updateSuperClasses()
Makes sure that super classes know about this one! |
Methods inherited from class ix.icore.AbstractAnnotatedObject |
---|
addAnnotationListener, annMap, clearAnnotations, fireSetAnnotation, getAnnotation, getComments, makeAnnMap, removeAnnotation, setAnnotation, setComments, takeAnnotations |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public Symbol name
public ix.util.lisp.ListOfSymbol superClassNames
public ix.util.lisp.ListOfSymbol subClassNames
public ix.icore.domain.ListOfObjectProperty objectProperties
public Annotations annotations
protected UIDomain uiDomain
protected ObjectClass baseObject
protected java.lang.String baseReference
java.util.HashSet dataChangeListeners
Constructor Detail |
---|
public UIObjectClass(UIDomain uiDomain, java.lang.String name)
public UIObjectClass(UIDomain uiDomain, Symbol name)
public UIObjectClass(UIDomain uiDomain, ObjectClass original)
Method Detail |
---|
public UIObjectClass cloneThis()
public java.lang.String getName()
getName
in interface Named
public void setName(java.lang.String newName)
setName
in interface UIObject
public void setLegalName(java.lang.String newName)
public java.util.List getObjectProperties()
public java.util.List getSuperClassNames()
public java.util.List getSubClassNames()
public Annotations getAnnotations()
getAnnotations
in interface Annotated
getAnnotations
in class AbstractAnnotatedObject
public void setAnnotations(Annotations annotations)
setAnnotations
in interface Annotated
setAnnotations
in class AbstractAnnotatedObject
public boolean isProperty(java.lang.String prop)
public boolean isProperty(ObjectProperty prop)
public boolean isOwnProperty(ObjectProperty prop)
public java.util.HashSet getOwnProperties()
public java.util.HashSet getAllProperties()
public java.util.HashSet getAncestorProperties()
public boolean setValue(java.lang.String field, java.lang.Object value)
setValue
in interface EditableObject
setValue
in interface UIObject
public boolean sameValue(java.lang.String field, java.lang.Object value, java.lang.Object otherValue)
sameValue
in interface EditableObject
sameValue
in interface UIObject
public boolean isEmpty()
isEmpty
in interface UIEditableObject
isEmpty
in interface UIObject
public boolean isUndefined()
isUndefined
in interface UIEditableObject
public boolean isEmpty(ObjectClass oc)
public void updateSuperClasses()
public void setSuperClassNames(java.util.List newValue)
public void addParent(IXNode parent)
addParent
in interface IXNode
public void addParents(java.util.List parents)
public void removeParent(Symbol parent)
public void removeParent(java.lang.String parent)
public void removeParent(IXNode parent)
removeParent
in interface IXNode
protected void tidyParents(Symbol oldN, Symbol newN)
protected void tidyChildren(Symbol oldN, Symbol newN)
public static ix.util.lisp.LinkedListOfSymbol collectClassNames(java.util.List objects)
public void setSubClassNames(java.util.List newValue)
public void addChild(Symbol child)
public void addChild(java.lang.String child)
public void addChild(IXNode child)
addChild
in interface IXNode
public void addChildren(java.util.List children)
public void removeChild(Symbol child)
public void removeChild(java.lang.String child)
public void removeChild(IXNode child)
removeChild
in interface IXNode
public void setObjectProperties(java.util.List newValue)
public void addProperty(Symbol property, ObjectProperty.Syntax type)
public void addProperty(java.lang.String property, ObjectProperty.Syntax type)
public void addProperty(java.lang.String property, java.lang.String type)
public void addProperty(Symbol property)
public void addProperty(java.lang.String property)
public void addProperty(ObjectProperty property)
public void replaceProperty(ObjectProperty oldProp, ObjectProperty newProp)
public void removeProperty(java.lang.Object property)
public Domain getDomain()
UIObject
getDomain
in interface UIObject
public UIDomain getUIDomain()
UIObject
getUIDomain
in interface UIObject
public void moveToUIDomain(UIDomain uiDomain)
UIObject
moveToUIDomain
in interface UIObject
public java.lang.Object getBaseReference()
UIObject
getBaseReference
in interface UIObject
public void setBaseReference(java.lang.Object ref)
UIObject
setBaseReference
in interface UIObject
public IXObject getBaseObject()
UIObject
getBaseObject
in interface UIEditableObject
getBaseObject
in interface UIObject
public IXObject makeBaseObject()
UIObject
makeBaseObject
in interface UIObject
public void setBaseObject(IXObject object)
UIObject
setBaseObject
in interface UIObject
public java.lang.Class getBaseClass()
UIObject
getBaseClass
in interface UIObject
public boolean hasOriginal()
UIObject
hasOriginal
in interface UIEditableObject
hasOriginal
in interface UIObject
public void saveToDomain()
saveToDomain
in interface UIObject
public void saveToDomain(java.lang.Object domainObject)
UIObject
saveToDomain
in interface UIObject
public void addToDomain()
public void addToDomain(Domain domain)
UIObject
addToDomain
in interface UIObject
public void updateInDomain(Domain domain) throws DomainReferenceException
UIObject
updateInDomain
in interface UIObject
DomainReferenceException
public void loadFromDomain()
loadFromDomain
in interface UIObject
public void loadFromDomain(java.lang.Object domainObject)
UIObject
loadFromDomain
in interface UIObject
public void removeFromDomain() throws DomainReferenceException
DomainReferenceException
public void removeFromDomain(Domain domain) throws DomainReferenceException
UIObject
removeFromDomain
in interface UIObject
DomainReferenceException
public IXObject getOriginal()
UIObject
getOriginal
in interface UIObject
public void loadFromOriginal()
UIObject
loadFromOriginal
in interface UIObject
public void noteChange()
noteChange
in interface UIObject
public boolean hasChanged()
UIObject
hasChanged
in interface UIEditableObject
hasChanged
in interface UIObject
public boolean hasChanged(ObjectClass original)
public boolean hasChangedFromOriginal()
UIObject
hasChangedFromOriginal
in interface UIEditableObject
hasChangedFromOriginal
in interface UIObject
public java.util.List collectChanges()
collectChanges
in interface UIObject
public java.util.List collectChangesFromOriginal()
collectChangesFromOriginal
in interface UIObject
public java.util.List collectChanges(ObjectClass original)
public java.util.List collectChanges(ObjectClass original, java.lang.String which)
public boolean nameHasChanged(java.lang.Object nameThing)
UIObject
nameHasChanged
in interface UIObject
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String superString()
public java.lang.String print()
print
in interface UIObject
public java.util.Enumeration children()
children
in interface javax.swing.tree.TreeNode
public java.util.List getChildren()
getChildren
in interface IXNode
public boolean getAllowsChildren()
getAllowsChildren
in interface javax.swing.tree.TreeNode
public javax.swing.tree.TreeNode getChildAt(int index)
getChildAt
in interface javax.swing.tree.TreeNode
public int getChildCount()
getChildCount
in interface javax.swing.tree.TreeNode
public int getIndex(javax.swing.tree.TreeNode node)
getIndex
in interface javax.swing.tree.TreeNode
public javax.swing.tree.TreeNode getParent()
getParent
in interface javax.swing.tree.TreeNode
public java.util.List getParents()
getParents
in interface IXNode
public boolean isLeaf()
isLeaf
in interface javax.swing.tree.TreeNode
public boolean checkLegalParent(UIObjectClass otherNode)
public java.lang.String reportLegalParent(UIObjectClass otherNode)
public java.lang.String reportLegalChild(UIObjectClass otherNode)
public boolean isParentOf(UIObjectClass otherNode)
public boolean isNodeAncestor(javax.swing.tree.TreeNode otherNode)
public void addDataChangeListener(DataChangeListener l)
addDataChangeListener
in interface EditableObject
public void removeDataChangeListener(DataChangeListener l)
removeDataChangeListener
in interface EditableObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |