|
Esri Geoportal Server 1.0
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.gpt.server.assertion.components.AsnProperty
public class AsnProperty
A tree structure or properties with subject, predicate and value.
| Constructor Summary | |
|---|---|
AsnProperty()
Default constructor |
|
AsnProperty(AsnProperty objectToDuplicate)
Construct by duplicating an existing object. |
|
AsnProperty(String subject,
String predicate,
String value)
Constructs with a subject, predicate and value. |
|
| Method Summary | |
|---|---|
String |
asJson()
Returns a JSON representation of the property. |
String |
asXml()
Returns an XML representation of the property. |
AsnProperty |
duplicate()
Produces a deep clone of the object. |
AsnProperties |
ensureChildren()
Gets the child properties (ensures that the collection has been instantiated). |
AsnProperties |
getChildren()
Gets the child properties. |
String |
getPredicate()
Gets the predicate. |
boolean |
getQuoteJsonValue()
Gets the flag indicating whether or not the JSON value should be quoted. |
String |
getSubject()
Gets the subject. |
String |
getValue()
Gets the value. |
boolean |
hasChildren()
Determines whether or not this property has children. |
void |
setChildren(AsnProperties children)
Sets the child properties. |
void |
setPredicate(String predicate)
Sets the predicate. |
void |
setQuoteJsonValue(boolean quote)
Sets the flag indicating whether or not the JSON value should be quoted. |
void |
setSubject(String subject)
Sets the subject. |
void |
setValue(String value)
Sets the value. |
void |
toJson(PrintWriter writer,
int depth,
boolean isLast)
Writes a JSON representation of the property. |
void |
toXml(PrintWriter writer,
int depth)
Writes an XML representation of the property. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AsnProperty()
public AsnProperty(String subject,
String predicate,
String value)
subject - the subjectpredicate - the predicatevalue - the valuepublic AsnProperty(AsnProperty objectToDuplicate)
objectToDuplicate - the object to duplicate| Method Detail |
|---|
public AsnProperties getChildren()
public void setChildren(AsnProperties children)
children - the child propertiespublic String getPredicate()
public void setPredicate(String predicate)
predicate - the predicatepublic boolean getQuoteJsonValue()
true if quoted (i.e. a Javascript string)public void setQuoteJsonValue(boolean quote)
quote - true if quoted (i.e. a Javascript string)public String getSubject()
public void setSubject(String subject)
subject - the subjectpublic String getValue()
public void setValue(String value)
value - the value
public String asJson()
throws IOException
IOException - if an exception occurs
public String asXml()
throws IOException
IOException - if an exception occurspublic AsnProperty duplicate()
public AsnProperties ensureChildren()
public boolean hasChildren()
true if this property has children
public void toJson(PrintWriter writer,
int depth,
boolean isLast)
throws IOException
writer - the writerdepth - the depth of the parent
IOException - if an exception occurs
public void toXml(PrintWriter writer,
int depth)
throws IOException
writer - the writerdepth - the depth of the parent
IOException - if an exception occurs
|
Esri Geoportal Server 1.0
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||