org.jvnet.jax_ws_commons.json.schema
Class CompositeJsonType

java.lang.Object
  extended by org.jvnet.jax_ws_commons.json.schema.JsonType
      extended by org.jvnet.jax_ws_commons.json.schema.CompositeJsonType

public class CompositeJsonType
extends JsonType

JavaScript object.

Author:
Kohsuke Kawaguchi

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jvnet.jax_ws_commons.json.schema.JsonType
JsonType.BooleanType, JsonType.NumberType, JsonType.StringType
 
Field Summary
 java.util.Map<java.lang.String,JsonType> properties
           
 
Fields inherited from class org.jvnet.jax_ws_commons.json.schema.JsonType
BOOLEAN, NUMBER, STRING
 
Constructor Summary
CompositeJsonType(java.lang.String name)
           
 
Method Summary
 java.lang.String getLink()
          Possibly generates a hyperlink to this type.
 java.lang.String getName()
           
 java.util.Map<java.lang.String,JsonType> getProperties()
           
 void listCompositeTypes(java.util.Set<CompositeJsonType> result)
          List up all the CompositeJsonTypes reachable from this type.
 JsonType unwrap()
          If this object type is the composite type that only has one property, returns its type.
 
Methods inherited from class org.jvnet.jax_ws_commons.json.schema.JsonType
makeArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

properties

public final java.util.Map<java.lang.String,JsonType> properties
Constructor Detail

CompositeJsonType

public CompositeJsonType(java.lang.String name)
Method Detail

getName

public java.lang.String getName()

getLink

public java.lang.String getLink()
Description copied from class: JsonType
Possibly generates a hyperlink to this type.

Specified by:
getLink in class JsonType

unwrap

public JsonType unwrap()
Description copied from class: JsonType
If this object type is the composite type that only has one property, returns its type.

Overrides:
unwrap in class JsonType

listCompositeTypes

public void listCompositeTypes(java.util.Set<CompositeJsonType> result)
Description copied from class: JsonType
List up all the CompositeJsonTypes reachable from this type.

Overrides:
listCompositeTypes in class JsonType

getProperties

public java.util.Map<java.lang.String,JsonType> getProperties()