|
org.netbeans.modules.xml.xam/1 1.18.0 1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.netbeans.modules.xml.xam.AbstractReference<T>
public abstract class AbstractReference<T extends Referenceable>
Represents reference to a component. On writing, this indirection help serialize the referenced component as an attribute string value. On reading, the referenced can be resolved on demand.
Note: Client code should always check for brokeness before access the referenced.
| Field Summary | |
|---|---|
protected String |
refString
|
| Constructor Summary | |
|---|---|
AbstractReference(Class<T> referencedType,
AbstractComponent parent,
String ref)
Constructor for reading. |
|
AbstractReference(T referenced,
Class<T> referencedType,
AbstractComponent parent)
Constructor for writing. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
protected AbstractComponent |
getParent()
|
protected T |
getReferenced()
Access method for referenced. |
String |
getRefString()
|
Class<T> |
getType()
Returns type of the referenced component |
int |
hashCode()
|
boolean |
isBroken()
Returns true if the reference cannot be resolved in the current document |
boolean |
references(T target)
Returns true if this reference refers to the target component. |
protected void |
setReferenced(T referenced)
Accessor method for referenced. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.netbeans.modules.xml.xam.Reference |
|---|
get |
| Field Detail |
|---|
protected String refString
| Constructor Detail |
|---|
public AbstractReference(T referenced,
Class<T> referencedType,
AbstractComponent parent)
referenced - the component being referencedreferencedType - type of the referenced componentparent - referencing component on which the referenced is serialized
as an attribute string value.
public AbstractReference(Class<T> referencedType,
AbstractComponent parent,
String ref)
referencedType - type of the referenced componentparent - referencing component on which the referenced is serialized
as an attribute string value.ref - the string value used in resolving.| Method Detail |
|---|
protected T getReferenced()
protected void setReferenced(T referenced)
public Class<T> getType()
getType in interface Reference<T extends Referenceable>public boolean isBroken()
isBroken in interface Reference<T extends Referenceable>public boolean references(T target)
references in interface Reference<T extends Referenceable>public String getRefString()
getRefString in interface Reference<T extends Referenceable>public String toString()
toString in class Objectprotected AbstractComponent getParent()
public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
org.netbeans.modules.xml.xam/1 1.18.0 1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||