Package nl.b3p.csw.jaxb.csw
Class SchemaComponentType
- java.lang.Object
-
- nl.b3p.csw.jaxb.csw.SchemaComponentType
-
public class SchemaComponentType extends Object
A schema component includes a schema fragment (type definition) or an entire schema from some target namespace; the schema language is identified by URI. If the component is a schema fragment its parent MUST be referenced (parentSchema).Java class for SchemaComponentType complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="SchemaComponentType"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <any processContents='lax'/> </sequence> <attribute name="targetNamespace" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" /> <attribute name="parentSchema" type="{http://www.w3.org/2001/XMLSchema}anyURI" /> <attribute name="schemaLanguage" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" /> </restriction> </complexContent> </complexType>
-
-
Field Summary
Fields Modifier and Type Field Description protected List<Serializable>contentprotected StringparentSchemaprotected StringschemaLanguageprotected StringtargetNamespace
-
Constructor Summary
Constructors Constructor Description SchemaComponentType()Default no-arg constructorSchemaComponentType(List<Serializable> content, String targetNamespace, String parentSchema, String schemaLanguage)Fully-initialising value constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Serializable>getContent()A schema component includes a schema fragment (type definition) or an entire schema from some target namespace; the schema language is identified by URI.StringgetParentSchema()Gets the value of the parentSchema property.StringgetSchemaLanguage()Gets the value of the schemaLanguage property.StringgetTargetNamespace()Gets the value of the targetNamespace property.voidsetParentSchema(String value)Sets the value of the parentSchema property.voidsetSchemaLanguage(String value)Sets the value of the schemaLanguage property.voidsetTargetNamespace(String value)Sets the value of the targetNamespace property.
-
-
-
Field Detail
-
content
protected List<Serializable> content
-
targetNamespace
protected String targetNamespace
-
parentSchema
protected String parentSchema
-
schemaLanguage
protected String schemaLanguage
-
-
Constructor Detail
-
SchemaComponentType
public SchemaComponentType()
Default no-arg constructor
-
SchemaComponentType
public SchemaComponentType(List<Serializable> content, String targetNamespace, String parentSchema, String schemaLanguage)
Fully-initialising value constructor
-
-
Method Detail
-
getContent
public List<Serializable> getContent()
A schema component includes a schema fragment (type definition) or an entire schema from some target namespace; the schema language is identified by URI. If the component is a schema fragment its parent MUST be referenced (parentSchema).Gets the value of the content property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the content property.For example, to add a new item, do as follows:
getContent().add(newItem);Objects of the following type(s) are allowed in the list
ObjectElementString
-
getTargetNamespace
public String getTargetNamespace()
Gets the value of the targetNamespace property.- Returns:
- possible object is
String
-
setTargetNamespace
public void setTargetNamespace(String value)
Sets the value of the targetNamespace property.- Parameters:
value- allowed object isString
-
getParentSchema
public String getParentSchema()
Gets the value of the parentSchema property.- Returns:
- possible object is
String
-
setParentSchema
public void setParentSchema(String value)
Sets the value of the parentSchema property.- Parameters:
value- allowed object isString
-
getSchemaLanguage
public String getSchemaLanguage()
Gets the value of the schemaLanguage property.- Returns:
- possible object is
String
-
-