| com.sun.xml.bind.v2.model.core.TypeInfoSet
TypeInfoSet | public interface TypeInfoSet (Code) | | Root of models. Set of
TypeInfo s.
author: Kohsuke Kawaguchi |
Method Summary | |
Map<? extends T, ? extends ArrayInfo<T, C>> | arrays() Returns all the
ArrayInfo s known to this set. | Map<C, ? extends ClassInfo<T, C>> | beans() Returns all the
ClassInfo s known to this set. | Map<T, ? extends BuiltinLeafInfo<T, C>> | builtins() Returns all the
BuiltinLeafInfo s known to this set. | public void | dump(Result out) Dumps this model into XML.
For debug only.
TODO: not sure if this actually works. | Map<C, ? extends EnumLeafInfo<T, C>> | enums() Returns all the
EnumLeafInfo s known to this set. | Iterable<? extends ElementInfo<T, C>> | getAllElements() Returns all the
ElementInfo known to this set. | NonElement<T, C> | getAnyTypeInfo() Gets the
TypeInfo for the any type. | XmlNsForm | getAttributeFormDefault(String nsUri) Gets the reasonable
XmlNsForm for the given namespace URI.
The spec doesn't define very precisely what the
XmlNsForm value
for the given namespace would be, so this method is implemented in rather
ad-hoc way. | NonElement<T, C> | getClassInfo(C type) Returns a
ClassInfo ,
ArrayInfo , or
LeafInfo for the given bean. | XmlNsForm | getElementFormDefault(String nsUri) Gets the reasonable
XmlNsForm for the given namespace URI.
The spec doesn't define very precisely what the
XmlNsForm value
for the given namespace would be, so this method is implemented in rather
ad-hoc way. | ElementInfo<T, C> | getElementInfo(C scope, QName name) Returns a
ElementInfo for the given element. | Map<QName, ? extends ElementInfo<T, C>> | getElementMappings(C scope) Returns all
ElementInfo s in the given scope. | Navigator<T, C, F, M> | getNavigator() Navigator for this model. | Map<String, String> | getSchemaLocations() Gets
XmlSchema.location found in this context. | NonElement<T, C> | getTypeInfo(T type) Returns a
TypeInfo for the given type. | NonElement<T, C> | getTypeInfo(Ref<T, C> ref) Returns a type information for the given reference. | Map<String, String> | getXmlNs(String namespaceUri) Gets all
XmlSchema.xmlns found in this context for the given namespace URI. |
dump | public void dump(Result out) throws JAXBException(Code) | | Dumps this model into XML.
For debug only.
TODO: not sure if this actually works. We don't really know what are T,C.
|
getAttributeFormDefault | XmlNsForm getAttributeFormDefault(String nsUri)(Code) | | Gets the reasonable
XmlNsForm for the given namespace URI.
The spec doesn't define very precisely what the
XmlNsForm value
for the given namespace would be, so this method is implemented in rather
ad-hoc way. It should work as what most people expect for simple cases.
never null. |
getElementFormDefault | XmlNsForm getElementFormDefault(String nsUri)(Code) | | Gets the reasonable
XmlNsForm for the given namespace URI.
The spec doesn't define very precisely what the
XmlNsForm value
for the given namespace would be, so this method is implemented in rather
ad-hoc way. It should work as what most people expect for simple cases.
never null. |
getElementInfo | ElementInfo<T, C> getElementInfo(C scope, QName name)(Code) | | Returns a
ElementInfo for the given element.
Parameters: scope - if null, return the info about a global element.Otherwise return a local element in the given scope if available,then look for a global element next. |
getElementMappings | Map<QName, ? extends ElementInfo<T, C>> getElementMappings(C scope)(Code) | | Returns all
ElementInfo s in the given scope.
Parameters: scope - if non-null, this method only returns the local element mapping. |
getSchemaLocations | Map<String, String> getSchemaLocations()(Code) | | Gets
XmlSchema.location found in this context.
This operation is expected to be only used in schema generator, so it can be slow.
A map from namespace URI to the value of the location.If the entry is missing, that means a schema should be generated for that namespace.If the value is "", that means the schema location is implied(<xs:schema namespace="..."/> w/o schemaLocation.) |
getTypeInfo | NonElement<T, C> getTypeInfo(T type)(Code) | | Returns a
TypeInfo for the given type.
null if the specified type cannot be bound by JAXB, ornot known to this set. |
getTypeInfo | NonElement<T, C> getTypeInfo(Ref<T, C> ref)(Code) | | Returns a type information for the given reference.
|
getXmlNs | Map<String, String> getXmlNs(String namespaceUri)(Code) | | Gets all
XmlSchema.xmlns found in this context for the given namespace URI.
This operation is expected to be only used in schema generator, so it can be slow.
A map from prefixes to namespace URIs, which should be declared when generating a schema.Could be empty but never null. |
|
|