|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.eclipse.higgins.util.idas.cp.BasicAttributePDP
Helper routines for Higgins Context providers that implement some type of PDP. This implementation allows for PDPs at critical points for converting types and values, both for the core properties and for the metadata associated with the attribute.
| Constructor Summary | |
|---|---|
BasicAttributePDP(IAttributePDPs attributePDP,
IAttributePDPs attributeMetaAttrPDP,
IAttributePDPs attributeValueMetaAttrPDP,
org.eclipse.higgins.idas.api.IAttribute attribute,
boolean isProviderAttr)
Create a new PDP based attribute which calls out to do conversions. |
|
| Method Summary | |
|---|---|
org.eclipse.higgins.idas.api.IAttribute |
addAttribute(org.eclipse.higgins.idas.api.IAttribute copyFrom)
Creates an meta-attribute for this object. |
org.eclipse.higgins.idas.api.IAttribute |
addAttribute(URI attrID)
Creates a meta-attribute for this object. |
org.eclipse.higgins.idas.api.IComplexAttrValue |
addComplexValue(URI arg0)
|
org.eclipse.higgins.idas.api.ISimpleAttrValue |
addSimpleValue(URI dataType,
Object copyFrom)
|
org.eclipse.higgins.idas.api.IAttributeValue |
addValue(org.eclipse.higgins.idas.api.IAttributeValue copyFrom)
TODO: this doesn't yet perform any policy callouts |
org.eclipse.higgins.idas.api.IAttributeValue |
addValue(URI attrID)
|
boolean |
equals(org.eclipse.higgins.idas.api.IAttribute attr)
Quick to implement and possibly low performance impl |
boolean |
equals(org.eclipse.higgins.idas.api.IHasAttributes attributes)
Quick to implement and possibly low performance impl |
org.eclipse.higgins.idas.api.IAttribute |
getAttribute(URI attrID)
|
Iterator |
getAttributes()
|
URI |
getAttrID()
|
org.eclipse.higgins.idas.api.model.IAttributeModel |
getModel()
TODO: currently returns the unmapped model TODO actually implement this function as more than a pass through function |
org.eclipse.higgins.idas.api.ISingleValuedAttribute |
getSingleValuedAttribute(URI attrID)
|
Iterator |
getValues()
|
Iterator |
getValues(org.eclipse.higgins.idas.api.IExtension[] extensions)
|
boolean |
isSingleValued()
TODO actually implement this function as more than a pass through function |
void |
remove()
TODO actually implement this function as more than a pass through function |
void |
removeAttribute(URI attrID)
|
void |
removeAttributeValue(org.eclipse.higgins.idas.api.IAttribute attr)
|
void |
removeAttributeValue(URI attrID,
Object value)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BasicAttributePDP(IAttributePDPs attributePDP,
IAttributePDPs attributeMetaAttrPDP,
IAttributePDPs attributeValueMetaAttrPDP,
org.eclipse.higgins.idas.api.IAttribute attribute,
boolean isProviderAttr)
throws org.eclipse.higgins.idas.api.IdASException
attributePDP - The PDP for the attribute conversions.attributeMetaAttrPDP - The PDP for Attribute meta-attribute conversions.attributeValueMetaAttrPDP - The PDP for Attribute Value meta-attribute conversions.attribute - The object we will wrap, it is the unmapped value, this could
be provider or consumer valueisProviderAttr - indicates if the value passed is provider or consumer. Pass true
if the value is provider based.
org.eclipse.higgins.idas.api.IdASException| Method Detail |
public org.eclipse.higgins.idas.api.model.IAttributeModel getModel()
throws org.eclipse.higgins.idas.api.IdASException
getModel in interface org.eclipse.higgins.idas.api.IAttributeorg.eclipse.higgins.idas.api.IdASExceptionIAttribute.getModel()
public org.eclipse.higgins.idas.api.IAttributeValue addValue(URI attrID)
throws org.eclipse.higgins.idas.api.IdASException,
org.eclipse.higgins.idas.api.InvalidTypeException
addValue in interface org.eclipse.higgins.idas.api.IAttributeorg.eclipse.higgins.idas.api.IdASException
org.eclipse.higgins.idas.api.InvalidTypeException
public org.eclipse.higgins.idas.api.IAttributeValue addValue(org.eclipse.higgins.idas.api.IAttributeValue copyFrom)
throws org.eclipse.higgins.idas.api.IdASException
addValue in interface org.eclipse.higgins.idas.api.IAttributeorg.eclipse.higgins.idas.api.IdASException
public URI getAttrID()
throws org.eclipse.higgins.idas.api.IdASException
getAttrID in interface org.eclipse.higgins.idas.api.IAttributeorg.eclipse.higgins.idas.api.IdASException
public boolean isSingleValued()
throws org.eclipse.higgins.idas.api.IdASException
isSingleValued in interface org.eclipse.higgins.idas.api.IAttributeorg.eclipse.higgins.idas.api.IdASExceptionIAttribute.isSingleValued()
public org.eclipse.higgins.idas.api.IComplexAttrValue addComplexValue(URI arg0)
throws org.eclipse.higgins.idas.api.IdASException,
org.eclipse.higgins.idas.api.InvalidTypeException
addComplexValue in interface org.eclipse.higgins.idas.api.IAttributeorg.eclipse.higgins.idas.api.IdASException
org.eclipse.higgins.idas.api.InvalidTypeException
public org.eclipse.higgins.idas.api.ISimpleAttrValue addSimpleValue(URI dataType,
Object copyFrom)
throws org.eclipse.higgins.idas.api.IdASException,
org.eclipse.higgins.idas.api.InvalidTypeException
addSimpleValue in interface org.eclipse.higgins.idas.api.IAttributeorg.eclipse.higgins.idas.api.IdASException
org.eclipse.higgins.idas.api.InvalidTypeException
public Iterator getValues()
throws org.eclipse.higgins.idas.api.IdASException
getValues in interface org.eclipse.higgins.idas.api.IAttributeorg.eclipse.higgins.idas.api.IdASException
public Iterator getValues(org.eclipse.higgins.idas.api.IExtension[] extensions)
throws org.eclipse.higgins.idas.api.IdASException
getValues in interface org.eclipse.higgins.idas.api.IAttributeorg.eclipse.higgins.idas.api.IdASException
public void remove()
throws org.eclipse.higgins.idas.api.IdASException
remove in interface org.eclipse.higgins.idas.api.IAttributeorg.eclipse.higgins.idas.api.IdASExceptionIAttribute.remove()
public boolean equals(org.eclipse.higgins.idas.api.IAttribute attr)
throws org.eclipse.higgins.idas.api.IdASException
equals in interface org.eclipse.higgins.idas.api.IAttributeorg.eclipse.higgins.idas.api.IdASException
public org.eclipse.higgins.idas.api.IAttribute addAttribute(URI attrID)
throws org.eclipse.higgins.idas.api.IdASException,
org.eclipse.higgins.idas.api.InvalidTypeException
addAttribute in interface org.eclipse.higgins.idas.api.IHasAttributesorg.eclipse.higgins.idas.api.IdASException
org.eclipse.higgins.idas.api.InvalidTypeExceptionorg.eclipse.higgins.idas.api.IHasAttrbutes#addAttribute(java.net.URI)
public org.eclipse.higgins.idas.api.IAttribute addAttribute(org.eclipse.higgins.idas.api.IAttribute copyFrom)
throws org.eclipse.higgins.idas.api.IdASException
TODO this function needs to check the incoming copyFrom and see if it is from this cp or not, then check the mapping, then copy it while mapping
addAttribute in interface org.eclipse.higgins.idas.api.IHasAttributesorg.eclipse.higgins.idas.api.IdASExceptionIHasAttributes.addAttribute(org.eclipse.higgins.idas.api.IAttribute)
public boolean equals(org.eclipse.higgins.idas.api.IHasAttributes attributes)
throws org.eclipse.higgins.idas.api.IdASException
equals in interface org.eclipse.higgins.idas.api.IHasAttributesorg.eclipse.higgins.idas.api.IdASException
public org.eclipse.higgins.idas.api.IAttribute getAttribute(URI attrID)
throws org.eclipse.higgins.idas.api.IdASException
getAttribute in interface org.eclipse.higgins.idas.api.IHasAttributesorg.eclipse.higgins.idas.api.IdASException
public Iterator getAttributes()
throws org.eclipse.higgins.idas.api.IdASException
getAttributes in interface org.eclipse.higgins.idas.api.IHasAttributesorg.eclipse.higgins.idas.api.IdASException
public org.eclipse.higgins.idas.api.ISingleValuedAttribute getSingleValuedAttribute(URI attrID)
throws org.eclipse.higgins.idas.api.IdASException,
org.eclipse.higgins.idas.api.NotSingleValuedAttributeException
getSingleValuedAttribute in interface org.eclipse.higgins.idas.api.IHasAttributesorg.eclipse.higgins.idas.api.IdASException
org.eclipse.higgins.idas.api.NotSingleValuedAttributeException
public void removeAttribute(URI attrID)
throws org.eclipse.higgins.idas.api.IdASException
removeAttribute in interface org.eclipse.higgins.idas.api.IHasAttributesorg.eclipse.higgins.idas.api.IdASException
public void removeAttributeValue(URI attrID,
Object value)
throws org.eclipse.higgins.idas.api.IdASException
removeAttributeValue in interface org.eclipse.higgins.idas.api.IHasAttributesorg.eclipse.higgins.idas.api.IdASException
public void removeAttributeValue(org.eclipse.higgins.idas.api.IAttribute attr)
throws org.eclipse.higgins.idas.api.IdASException
removeAttributeValue in interface org.eclipse.higgins.idas.api.IHasAttributesorg.eclipse.higgins.idas.api.IdASException
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||