|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gov.lanl.Web.Content
COAS ObservationDataStruct container bean This class facilitiates the incremental construction of the tree of data that makes up the ObservationDataStruct. It also provides a mechanism to convert it to a DOM Document which is an intermediate step in the conversion process.
| Constructor Summary | |
Content()
Creates new Content |
|
Content(org.omg.DsObservationAccess.ObservationDataStruct od)
Construct content from ObservationDataStruct |
|
| Method Summary | |
void |
addContent(Content oData)
Add content and try to attach to appropriate container |
void |
addContent(Content[] data)
Add an array of content |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
|
void |
addQualifier(Content qualifier)
add qualifier to this content object |
org.w3c.dom.Node |
applyXSL(java.lang.String xslfile,
java.lang.String[] params)
get proper Document translated by xsl stylesheet |
void |
delContent(java.lang.String code)
Remove an element by name |
java.lang.String |
getCode()
|
java.util.Vector |
getContent()
return composite vector |
Content |
getContent(java.lang.String code)
Look up code in composite or qualifier |
static org.w3c.dom.Document |
getDocument()
return static document value |
org.w3c.dom.Node |
getNode()
return DOM Node for current Content object and children |
java.util.Vector |
getQualifiers()
get qualifiers |
ObservationValue_ |
getValue()
|
static java.lang.String |
getXsl()
get the Xsl file for translation |
void |
init(java.lang.String aCode,
java.lang.String aValue)
|
static void |
initDOM()
initializer for DOM model |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
|
void |
setCode(java.lang.String value)
|
void |
setValue(ObservationValue_ aValue)
set the Observation Value |
static void |
setXsl(java.lang.String xslfile)
|
org.w3c.dom.Document |
toDom()
Build DOM tree from this Content object |
org.omg.DsObservationAccess.ObservationDataStruct[] |
toDOMObsDataSeq()
Convert into ObservationDataStruct[] via Document Model |
org.omg.DsObservationAccess.ObservationDataStruct |
toObsData()
Convert Content to COAS ObservationDataStruct directly |
org.omg.DsObservationAccess.ObservationDataStruct[] |
toObsDataSeq()
|
java.lang.String |
toString()
Serialize Content to String |
java.lang.String |
toString(org.w3c.dom.Node node)
|
void |
write(java.lang.String file)
Serialize Content to a file as XML |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Content()
public Content(org.omg.DsObservationAccess.ObservationDataStruct od)
| Method Detail |
public static void initDOM()
public void init(java.lang.String aCode,
java.lang.String aValue)
public java.lang.String getCode()
public void setCode(java.lang.String value)
public ObservationValue_ getValue()
public static org.w3c.dom.Document getDocument()
public void setValue(ObservationValue_ aValue)
aValue - public void addContent(Content[] data)
data - array of content to be addedpublic void addContent(Content oData)
oData - with content to be added to be addedpublic Content getContent(java.lang.String code)
code -
public void delContent(java.lang.String code)
code - public void addQualifier(Content qualifier)
public java.util.Vector getQualifiers()
public java.util.Vector getContent()
public org.w3c.dom.Node getNode()
public org.w3c.dom.Document toDom()
public void write(java.lang.String file)
file - public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toString(org.w3c.dom.Node node)
public org.omg.DsObservationAccess.ObservationDataStruct[] toDOMObsDataSeq()
public org.omg.DsObservationAccess.ObservationDataStruct[] toObsDataSeq()
public org.omg.DsObservationAccess.ObservationDataStruct toObsData()
public static void setXsl(java.lang.String xslfile)
public static java.lang.String getXsl()
public org.w3c.dom.Node applyXSL(java.lang.String xslfile,
java.lang.String[] params)
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||