public class TypeUtils extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TypeUtils.ValidationError |
Modifier and Type | Method and Description |
---|---|
static TypeDefinition |
readFromJSON(InputStream stream)
Reads a type definition from a JSON stream.
|
static TypeDefinition |
readFromXML(InputStream stream)
Reads a type definition from a XML stream.
|
static List<TypeUtils.ValidationError> |
validatePropertyDefinition(PropertyDefinition<?> propDef)
Validates a property definition.
|
static List<TypeUtils.ValidationError> |
validateTypeDefinition(TypeDefinition type)
Validates a type definition.
|
static void |
writeToJSON(TypeDefinition type,
OutputStream stream)
Serializes the type definition to JSON, using the format defined in the
CMIS specification.
|
static void |
writeToXML(TypeDefinition type,
OutputStream stream)
Serializes the type definition to XML, using the format defined in the
CMIS specification.
|
public static void writeToXML(TypeDefinition type, OutputStream stream) throws Exception
Exception
public static void writeToJSON(TypeDefinition type, OutputStream stream) throws Exception
Exception
public static TypeDefinition readFromXML(InputStream stream) throws Exception
Exception
public static TypeDefinition readFromJSON(InputStream stream) throws Exception
Exception
public static List<TypeUtils.ValidationError> validateTypeDefinition(TypeDefinition type)
public static List<TypeUtils.ValidationError> validatePropertyDefinition(PropertyDefinition<?> propDef)
Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.