|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectSchemaImpl
public class SchemaImpl
Implementation of Schema.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface Map |
---|
Map.Entry<K,V> |
Constructor Summary | |
---|---|
SchemaImpl(String uri)
Schema constructed w/ respect to provided URI |
Method Summary | |
---|---|
void |
add(AttributeType type)
Adds a type to the schema. |
void |
clear()
|
boolean |
containsKey(Object key)
|
boolean |
containsValue(Object value)
|
Set<Map.Entry<Name,AttributeType>> |
entrySet()
|
boolean |
equals(Object obj)
|
AttributeType |
get(Object key)
|
String |
getURI()
The uri of the schema. |
int |
hashCode()
|
boolean |
isEmpty()
|
Set<Name> |
keySet()
|
Schema |
profile(Set<Name> profile)
Profiles the schema, creating a new schema in the process. |
AttributeType |
put(Name name,
AttributeType type)
|
void |
putAll(Map<? extends Name,? extends AttributeType> t)
|
AttributeType |
remove(Object key)
|
int |
size()
|
String |
toString()
|
Collection<AttributeType> |
values()
|
Methods inherited from class Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SchemaImpl(String uri)
Method Detail |
---|
public Set<Name> keySet()
keySet
in interface Map<Name,AttributeType>
public int size()
size
in interface Map<Name,AttributeType>
public boolean isEmpty()
isEmpty
in interface Map<Name,AttributeType>
public boolean containsKey(Object key)
containsKey
in interface Map<Name,AttributeType>
public boolean containsValue(Object value)
containsValue
in interface Map<Name,AttributeType>
public AttributeType get(Object key)
get
in interface Map<Name,AttributeType>
public AttributeType put(Name name, AttributeType type)
put
in interface Map<Name,AttributeType>
public AttributeType remove(Object key)
remove
in interface Map<Name,AttributeType>
public void putAll(Map<? extends Name,? extends AttributeType> t)
putAll
in interface Map<Name,AttributeType>
public void clear()
clear
in interface Map<Name,AttributeType>
public Collection<AttributeType> values()
values
in interface Map<Name,AttributeType>
public Set<Map.Entry<Name,AttributeType>> entrySet()
entrySet
in interface Map<Name,AttributeType>
public int hashCode()
hashCode
in interface Map<Name,AttributeType>
hashCode
in class Object
public boolean equals(Object obj)
equals
in interface Map<Name,AttributeType>
equals
in class Object
public String toString()
toString
in class Object
public String getURI()
Schema
This method is a convenience for keySet().getURI()
.
getURI
in interface Schema
public void add(AttributeType type)
Schema
This method is a convenience for put(type.getName(),type)
.
add
in interface Schema
type
- The type to add.public Schema profile(Set<Name> profile)
Schema
A profile of a schema is a subset of the schema, and it also a schema itself.
Used to select a subset of types for a specific application. Profiles often are used to express limitiations of a source of data.
profile
in interface Schema
profile
- The set of names which corresond to entries that will make
up the profile.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |