|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.openspml.v2.util.xml.BasicMarshallableElement
org.openspml.v2.msg.spml.Extensible
This is the basis of all the various types in the toolkit.
| Constructor Summary | |
Extensible()
This is public because we need to add these for open content quite often. |
|
| Method Summary | |
void |
addOpenContentAttr(OpenContentAttr attribute)
|
void |
addOpenContentAttr(java.lang.String name,
java.lang.String value)
Add an open content attr to this object. |
void |
addOpenContentElement(OpenContentElement obj)
Add an open content element to this object. |
boolean |
equals(java.lang.Object o)
|
java.lang.String |
findOpenContentAttrValueByName(java.lang.String name)
Convenience method to get the value of the named OpenContentAttr. |
OperationalNameValuePair |
findOperationalAttrByName(java.lang.String name)
Deprecated. changing the name of this method. |
OperationalNameValuePair |
findOperationalNVPByName(java.lang.String name)
This is a convenience method that looks for our utilitarian operational NVP object. |
PrefixAndNamespaceTuple[] |
getNamespacesInfo()
We need to know the namespace of the class to include. |
OpenContentAttr[] |
getOpenContentAttrs()
Return an array of all the attributes (name,value) that are not part of the type as defined in the xsd. |
OpenContentElement[] |
getOpenContentElements()
Returns an array of all the open content elements. |
java.util.List |
getOpenContentElements(java.lang.Class cls)
Return the open content elements that are assignable form the given class. |
int |
hashCode()
|
boolean |
isValid()
Is this ready to go or are there syntax errors, like missing required fields? |
int |
removeAllOperationalNVPsWithName(java.lang.String name)
This will look any OperationalNVP elements and remove those that have a matching name. |
boolean |
removeOpenContentAttr(OpenContentAttr attribute)
|
boolean |
removeOpenContentElement(OpenContentElement obj)
|
void |
setOpenContent(OpenContentAttr[] attrs,
OpenContentElement[] elements)
This will clear the existing open content and set it to the values in the given arrays of attributes and elements. |
void |
setOpenContentAttrs(OpenContentAttr[] attrs)
This will clear the existing open content attributes and set it to the values in the given array of attributes. |
void |
setOpenContentElements(OpenContentElement[] elements)
This will clear the existing open content elements and set it to the values in the given array of elements. |
| Methods inherited from class org.openspml.v2.util.xml.BasicMarshallableElement |
getElementName, getElementName |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Extensible()
| Method Detail |
public OperationalNameValuePair findOperationalAttrByName(java.lang.String name)
name -
public OperationalNameValuePair findOperationalNVPByName(java.lang.String name)
name -
public int removeAllOperationalNVPsWithName(java.lang.String name)
name - The name of the elements to remove.
public void addOpenContentAttr(java.lang.String name,
java.lang.String value)
addOpenContentAttr in interface OpenContentContainername - value - public OpenContentAttr[] getOpenContentAttrs()
getOpenContentAttrs in interface OpenContentContainerpublic java.lang.String findOpenContentAttrValueByName(java.lang.String name)
name -
public void addOpenContentElement(OpenContentElement obj)
addOpenContentElement in interface OpenContentContainerobj - public OpenContentElement[] getOpenContentElements()
getOpenContentElements in interface OpenContentContainerpublic java.util.List getOpenContentElements(java.lang.Class cls)
cls - If the element is assignable for this, return it.
public PrefixAndNamespaceTuple[] getNamespacesInfo()
MarshallableElement
getNamespacesInfo in interface MarshallableElementgetNamespacesInfo in class BasicMarshallableElementpublic boolean isValid()
MarshallableElement
isValid in interface MarshallableElementisValid in class BasicMarshallableElementpublic void addOpenContentAttr(OpenContentAttr attribute)
public boolean removeOpenContentAttr(OpenContentAttr attribute)
public void setOpenContentElements(OpenContentElement[] elements)
elements - public void setOpenContentAttrs(OpenContentAttr[] attrs)
attrs -
public void setOpenContent(OpenContentAttr[] attrs,
OpenContentElement[] elements)
attrs - elements - public boolean removeOpenContentElement(OpenContentElement obj)
public boolean equals(java.lang.Object o)
public int hashCode()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||