public interface TypeInfoSet<T,C,F,M>
TypeInfo
s.Modifier and Type | Method and Description |
---|---|
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. |
void |
dump(Result out)
Dumps this model into XML.
|
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. |
NonElement<T,C> |
getClassInfo(C type)
|
XmlNsForm |
getElementFormDefault(String nsUri)
Gets the reasonable
XmlNsForm for the given namespace URI. |
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(Ref<T,C> ref)
Returns a type information for the given reference.
|
NonElement<T,C> |
getTypeInfo(T type)
Returns a
TypeInfo for the given type. |
Map<String,String> |
getXmlNs(String namespaceUri)
Gets all
XmlSchema.xmlns() found in this context for the given namespace URI. |
NonElement<T,C> getTypeInfo(T type)
TypeInfo
for the given type.NonElement<T,C> getAnyTypeInfo()
TypeInfo
for the any type.NonElement<T,C> getClassInfo(C type)
ClassInfo
, ArrayInfo
, or LeafInfo
for the given bean.
This method is almost like refinement of getTypeInfo(Object)
except
our C cannot derive from T.
Map<? extends T,? extends ArrayInfo<T,C>> arrays()
ArrayInfo
s known to this set.Map<T,? extends BuiltinLeafInfo<T,C>> builtins()
BuiltinLeafInfo
s known to this set.Map<C,? extends EnumLeafInfo<T,C>> enums()
EnumLeafInfo
s known to this set.ElementInfo<T,C> getElementInfo(C scope, QName name)
ElementInfo
for the given element.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.NonElement<T,C> getTypeInfo(Ref<T,C> ref)
Map<QName,? extends ElementInfo<T,C>> getElementMappings(C scope)
ElementInfo
s in the given scope.scope
- if non-null, this method only returns the local element mapping.Iterable<? extends ElementInfo<T,C>> getAllElements()
ElementInfo
known to this set.Map<String,String> getXmlNs(String namespaceUri)
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.
Map<String,String> getSchemaLocations()
XmlSchema.location()
found in this context.
This operation is expected to be only used in schema generator, so it can be slow.
XmlNsForm getElementFormDefault(String nsUri)
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.
XmlNsForm getAttributeFormDefault(String nsUri)
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.
void dump(Result out) throws JAXBException
JAXBException
Copyright © 2017 JBoss by Red Hat. All rights reserved.