Package com.adobe.xmp.schema.model
Interface SchemaDescription
-
- All Superinterfaces:
Serializable
public interface SchemaDescription extends Serializable
Describes a single XMP namespace. Contains a list of properties that are part of the schema.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
accept(SchemaVisitor schemaVisitor)
void
addProperty(PropertyDescription property)
Adds a property to the schema.String
getDescription()
String
getLabel()
String
getNamespaceURI()
List<PropertyDescription>
getProperties()
PropertyDescription
getProperty(String localName)
void
removeProperty(String localName)
Removes a property from the schema namespace.void
setDescription(String description)
void
setLabel(String label)
-
-
-
Method Detail
-
getNamespaceURI
String getNamespaceURI()
- Returns:
- Returns the schema namespace.
-
getLabel
String getLabel()
- Returns:
- Returns the default label.
-
setLabel
void setLabel(String label)
- Parameters:
label
- Sets the default label
-
getDescription
String getDescription()
- Returns:
- Returns the default description.
-
setDescription
void setDescription(String description)
- Parameters:
description
- Sets the default description
-
addProperty
void addProperty(PropertyDescription property)
Adds a property to the schema. The namespaceURI of the property is set to the schema's namespace even if it had a different value before.- Parameters:
property
- an PropertyDescription
-
getProperty
PropertyDescription getProperty(String localName)
- Parameters:
localName
- the local name of a property- Returns:
- Returns a property or null if not existing.
-
getProperties
List<PropertyDescription> getProperties()
- Returns:
- Returns a list of all properties contained in the schema.
-
removeProperty
void removeProperty(String localName)
Removes a property from the schema namespace.- Parameters:
localName
- the local name of the property to remove
-
accept
void accept(SchemaVisitor schemaVisitor) throws XMPSchemaException
- Parameters:
schemaVisitor
- a visitor that implements theSchemaVisitor
-interface- Throws:
XMPSchemaException
- Handles visitor exceptions
-
-